Browse Source

fix: cellIcon for multiple source

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3573/head
mertmit 2 years ago
parent
commit
b0b32dd4a4
  1. 4
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 4
      packages/nc-gui/components/smartsheet/header/CellIcon.ts

4
packages/nc-gui/components/smartsheet/Cell.vue

@ -82,7 +82,9 @@ const isLocked = inject(IsLockedInj, ref(false))
const { currentRow } = useSmartsheetRowStoreOrThrow()
const { sqlUi } = useProject()
const { sqlUis } = useProject()
const sqlUi = ref(column.value?.base_id ? sqlUis.value[column.value?.base_id] : Object.values(sqlUis.value)[0])
const abstractType = computed(() => column.value && sqlUi.value.getAbstractType(column.value))

4
packages/nc-gui/components/smartsheet/header/CellIcon.ts

@ -118,7 +118,9 @@ export default defineComponent({
const column = inject(ColumnInj, columnMeta)
const { sqlUi } = useProject()
const { sqlUis } = useProject()
const sqlUi = ref(columnMeta.value?.base_id ? sqlUis.value[columnMeta.value?.base_id] : Object.values(sqlUis.value)[0])
const abstractType = computed(() => column.value && sqlUi.value.getAbstractType(column.value))

Loading…
Cancel
Save