Browse Source

fix: use computed to get sqlUi

pull/7392/head
Pranav C 12 months ago
parent
commit
3252982c15
  1. 2
      packages/nc-gui/composables/useSmartsheetStore.ts

2
packages/nc-gui/composables/useSmartsheetStore.ts

@ -21,7 +21,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
const { sqlUis } = storeToRefs(baseStore)
const sqlUi = ref(
const sqlUi = computed(() =>
(meta.value as TableType)?.source_id ? sqlUis.value[(meta.value as TableType).source_id!] : Object.values(sqlUis.value)[0],
)

Loading…
Cancel
Save