From c9da515c0d159230c9f034f5235198475793cc7d Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 6 Aug 2022 02:42:24 +0530 Subject: [PATCH] refactor(gui-v2): reload child list on linking Signed-off-by: Pranav C --- packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue | 2 +- packages/nc-gui-v2/composables/useLTARStore.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue index 656f904eca..35f8b6b943 100644 --- a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue +++ b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue @@ -42,7 +42,7 @@ await loadRelatedTableMeta() @click="listItemsDlg = true" /> - + diff --git a/packages/nc-gui-v2/composables/useLTARStore.ts b/packages/nc-gui-v2/composables/useLTARStore.ts index 327c01d335..691564bd84 100644 --- a/packages/nc-gui-v2/composables/useLTARStore.ts +++ b/packages/nc-gui-v2/composables/useLTARStore.ts @@ -93,6 +93,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( const loadChildrenList = async () => { try { + if (colOptions.type === 'bt') return + childrenList.value = await $api.dbTableRow.nestedList( NOCO, project.value.id as string, @@ -198,6 +200,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( column?.value?.title, getRelatedTableRowId(row) as string, ) + await loadChildrenList() } catch (e: any) { notification.error({ message: 'Linking failed',