|
|
|
@ -196,9 +196,11 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
|
|
|
|
|
} |
|
|
|
|
await $api.dbTableColumn.create(meta.value.id as string, formState.value) |
|
|
|
|
|
|
|
|
|
if (formState.value.uidt === UITypes.LinkToAnotherRecord) { |
|
|
|
|
await getMeta(formState.value.childId, true) |
|
|
|
|
/** if LTAR column then force reload related table meta */ |
|
|
|
|
if (formState.value.uidt === UITypes.LinkToAnotherRecord && meta.value.id !== formState.value.childId) { |
|
|
|
|
getMeta(formState.value.childId, true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
toast.success('Column created') |
|
|
|
|
} |
|
|
|
|
onSuccess() |
|
|
|
|