Browse Source

fix(nc-gui): removed unwanted xwhere

pull/6254/head
reenphygeorge 1 year ago
parent
commit
b4a5ac272b
  1. 5
      packages/nc-gui/components/smartsheet/Gallery.vue

5
packages/nc-gui/components/smartsheet/Gallery.vue

@ -39,6 +39,7 @@ const reloadViewDataHook = inject(ReloadViewDataHookInj)
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook())
const { isViewDataLoading } = storeToRefs(useViewsStore())
const { isSqlView, xWhere } = useSmartsheetStoreOrThrow()
const expandedFormDlg = ref(false)
const expandedFormRow = ref<RowType>()
@ -54,7 +55,7 @@ const {
addEmptyRow,
deleteRow,
navigateToSiblingRow,
} = useViewData(meta, view)
} = useViewData(meta, view, xWhere)
provide(IsFormInj, ref(false))
provide(IsGalleryInj, ref(true))
@ -85,8 +86,6 @@ const isRowEmpty = (record: any, col: any) => {
return Array.isArray(val) && val.length === 0
}
const { isSqlView } = useSmartsheetStoreOrThrow()
const { isUIAllowed } = useUIPermission()
const hasEditPermission = computed(() => isUIAllowed('xcDatatableEditable'))
// TODO: extract this code (which is duplicated in grid and gallery) into a separate component

Loading…
Cancel
Save