Browse Source

Nc fix/expanding rows for view (#8423)

* fix: handle the case when sharedView is not set

* chore: revert file change
pull/8470/head
Rohit 7 months ago committed by GitHub
parent
commit
fd3e5b21ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/nc-gui/composables/useExpandedFormStore.ts

5
packages/nc-gui/composables/useExpandedFormStore.ts

@ -29,7 +29,10 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
const { sharedView } = useSharedView()
const row = ref<Row>(
sharedView.value?.type === ViewTypes.GALLERY || sharedView.value?.type === ViewTypes.KANBAN || _row.value.rowMeta.new
!sharedView.value ||
sharedView.value?.type === ViewTypes.GALLERY ||
sharedView.value?.type === ViewTypes.KANBAN ||
_row.value.rowMeta.new
? _row.value
: ({ row: {}, oldRow: {}, rowMeta: {} } as Row),
)

Loading…
Cancel
Save