From 6e7cb27af298192144928579eefc5cd2e1fbf219 Mon Sep 17 00:00:00 2001 From: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:46:42 +0530 Subject: [PATCH] fix: securing tasks and notes all view (#6869) ISSUE - Closes #6863 --- .../standard-objects-prefill-data/views/notes-all.view.ts | 2 +- .../standard-objects-prefill-data/views/tasks-all.view.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts index 764b93995b7c..658c15cce0dc 100644 --- a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts +++ b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/notes-all.view.ts @@ -12,7 +12,7 @@ export const notesAllView = async ( name: 'All Notes', objectMetadataId: objectMetadataMap[STANDARD_OBJECT_IDS.note].id, type: 'table', - key: null, + key: 'INDEX', position: 0, icon: 'IconNotes', kanbanFieldMetadataId: '', diff --git a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts index c623c07e9f7a..dc6f5fe5ce25 100644 --- a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts +++ b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view.ts @@ -12,7 +12,7 @@ export const tasksAllView = async ( name: 'All Tasks', objectMetadataId: objectMetadataMap[STANDARD_OBJECT_IDS.task].id, type: 'table', - key: null, + key: 'INDEX', position: 0, icon: 'IconCheckbox', kanbanFieldMetadataId: '',