Browse Source

fix/now related table meta is reloaded when ltar is created

pull/3057/head
Muhammed Mustafa 2 years ago committed by Pranav C
parent
commit
fccb728da9
  1. 5
      packages/nc-gui-v2/composables/useColumnCreateStore.ts

5
packages/nc-gui-v2/composables/useColumnCreateStore.ts

@ -24,7 +24,7 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
(meta: Ref<TableType>, column?: Ref<ColumnType>) => {
const { sqlUi } = useProject()
const { $api } = useNuxtApp()
const { getMeta } = useMetas()
const toast = useToast()
const idType = null
@ -196,6 +196,9 @@ 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)
}
toast.success('Column created')
}
onSuccess()

Loading…
Cancel
Save