File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/frontend/src/lib/components/blocks/update-field Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6464 onSubmit(input ) {
6565 validateForm ({ update: true })
6666 },
67- onUpdate(event ) {
67+ async onUpdate(event ) {
6868 if (! event .form .valid ) {
6969 console .log (event .form .errors , event .form .data )
7070 return
7171 }
7272 const data = event .form .data
7373 const field = FieldFactory .fromJSON (data ).toJSON ()
7474
75- $updateFieldMutation .mutate ({
75+ await $updateFieldMutation .mutateAsync ({
7676 tableId: $table .id .value ,
7777 field ,
7878 })
125125 {#if $updateFieldMutation .isPending }
126126 <LoaderCircleIcon class =" mr-2 h-5 w-5 animate-spin" />
127127 {:else }
128- <PencilIcon class =" mr-2 h-5 w-5 " />
128+ <PencilIcon class =" mr-2 h-4 w-4 " />
129129 {/if }
130130 Update Field
131131 </Button >
You can’t perform that action at this time.
0 commit comments