Fix capabilities settings UI: store typeId in hidden field as server expects it to be @NotNull