diff --git a/packages/nc-gui/components/smartsheet/calendar/index.vue b/packages/nc-gui/components/smartsheet/calendar/index.vue index f36d3227fa..6051eaa03a 100644 --- a/packages/nc-gui/components/smartsheet/calendar/index.vue +++ b/packages/nc-gui/components/smartsheet/calendar/index.vue @@ -86,7 +86,6 @@ const expandedFormRowState = ref>() const expandRecord = (row: RowType, state?: Record) => { const rowId = extractPkFromRow(row.row, meta.value!.columns!) - if (rowId) { router.push({ query: { diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index db848d4ac3..43236a7743 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -1,9 +1,11 @@ -import { UITypes, ViewTypes, isVirtualCol } from 'nocodb-sdk' import type { AuditType, ColumnType, TableType } from 'nocodb-sdk' +import { UITypes, ViewTypes, isVirtualCol } from 'nocodb-sdk' import type { Ref } from 'vue' import dayjs from 'dayjs' import { + IsPublicInj, NOCO, + type Row, computed, extractPkFromRow, extractSdkResponseErrorMsg, @@ -22,7 +24,6 @@ import { useSharedView, useUndoRedo, } from '#imports' -import type { Row } from '#imports' const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref, _row: Ref) => { const { $e, $state, $api } = useNuxtApp() @@ -31,6 +32,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m const { t } = useI18n() + const isPublic = inject(IsPublicInj, ref(false)) + const commentsOnly = ref(false) const commentsAndLogs = ref([]) @@ -301,6 +304,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m } const loadRow = async (rowId?: string, onlyVirtual = false) => { + if (isPublic.value) return let record = await $api.dbTableRow.read( NOCO, // todo: base_id missing on view type