Browse Source

fix: Fixed issue with Cell icon not taking column prop with column injection is provided

pull/7048/head
Muhammed Mustafa 12 months ago
parent
commit
cce10a8ad4
  1. 4
      packages/nc-gui/components/smartsheet/header/CellIcon.ts
  2. 4
      packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts

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

@ -103,7 +103,9 @@ export default defineComponent({
setup(props) {
const columnMeta = toRef(props, 'columnMeta')
const column = inject(ColumnInj, columnMeta)
const injectedColumn = inject(ColumnInj, columnMeta)
const column = computed(() => columnMeta.value ?? injectedColumn.value)
const { sqlUis } = storeToRefs(useBase())

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

@ -78,7 +78,9 @@ export default defineComponent({
setup(props) {
const columnMeta = toRef(props, 'columnMeta')
const column = inject(ColumnInj, columnMeta) as Ref<ColumnType & { colOptions: LookupType | RollupType }>
const injectedColumn = inject(ColumnInj, columnMeta) as Ref<ColumnType & { colOptions: LookupType | RollupType }>
const column = computed(() => columnMeta.value ?? injectedColumn.value)
let relationColumn: ColumnType

Loading…
Cancel
Save