Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): Property hasEditPermission was accessed during render but is not defined on instance

Ramesh Manebd5966a53612
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/index.vue b/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
index d08ae88afa..33b1c408c4 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/index.vue
@@ -2653,7 +2653,6 @@ watch(
:bulk-delete-all="bulkDeleteAll"
:call-add-new-row="callAddNewRow"
:copy-value="copyValue"
- :read-only="!hasEditPermission"
:get-rows="getRows"
:bulk-update-rows="bulkUpdateRows"
:expand-form="expandForm"
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/utils/groupby.ts b/packages/nc-gui/components/smartsheet/grid/canvas/utils/groupby.ts
index 822772ccd2..28eb280c06 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/utils/groupby.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/utils/groupby.ts
@@ -208,7 +208,6 @@ export function generateGroupPath(data?: CanvasGroup) {
export function comparePath(pathA?: Array<number | string> | null, pathB?: Array<number | string> | null) {
if (!ncIsArray(pathA) || !ncIsArray(pathB)) {
- console.error('Path is not an array', pathA, pathB)
return false
}