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