Browse Source

fix(nc-gui): incorrect usage of optional chain expressions

pull/4981/head
Wing-Kam Wong 2 years ago
parent
commit
630e0c44e2
  1. 2
      packages/nc-gui/composables/useKanbanViewStore.ts
  2. 2
      packages/nc-gui/composables/useSmartsheetStore.ts

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

@ -72,7 +72,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState(
const { sqlUis } = useProject()
const sqlUi = ref(
(meta.value as TableType)?.base_id ? sqlUis.value[(meta.value as TableType)?.base_id!] : Object.values(sqlUis.value)[0],
(meta.value as TableType)?.base_id ? sqlUis.value[(meta.value as TableType).base_id!] : Object.values(sqlUis.value)[0],
)
const xWhere = computed(() => {

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

@ -17,7 +17,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
const { sqlUis } = useProject()
const sqlUi = ref(
(meta.value as TableType)?.base_id ? sqlUis.value[(meta.value as TableType)?.base_id!] : Object.values(sqlUis.value)[0],
(meta.value as TableType)?.base_id ? sqlUis.value[(meta.value as TableType).base_id!] : Object.values(sqlUis.value)[0],
)
const cellRefs = ref<HTMLTableDataCellElement[]>([])

Loading…
Cancel
Save