Browse Source

fix: null check validations

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2992/head
Raju Udava 2 years ago
parent
commit
8aac0b5853
  1. 2
      packages/nc-gui-v2/components/tabs/Smartsheet.vue
  2. 2
      packages/nc-gui-v2/composables/useViewColumns.ts

2
packages/nc-gui-v2/components/tabs/Smartsheet.vue

@ -40,7 +40,7 @@ provide(RightSidebarInj, ref(true))
useProvideSmartsheetStore(activeView as Ref<TableType>, meta)
watch(tabMeta, async (newTabMeta, oldTabMeta) => {
if (newTabMeta !== oldTabMeta && newTabMeta.id) await getMeta(newTabMeta.id)
if (newTabMeta !== oldTabMeta && newTabMeta?.id) await getMeta(newTabMeta.id)
})
</script>

2
packages/nc-gui-v2/composables/useViewColumns.ts

@ -40,7 +40,7 @@ export function useViewColumns(
}
}, {})
fields.value = meta.value.columns
fields.value = meta.value?.columns
?.map((column) => {
const currentColumnField = fieldById[column.id!] || {}

Loading…
Cancel
Save