From dd1d9c32c3fd9007439872cc7d11df39394e1782 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Tue, 8 Apr 2025 17:35:41 +0200 Subject: [PATCH] Remove task, note and file tabs for workflows (#11453) Command menu tries to fetch task, file and notes that are not available for workflow entities. Hiding those tabs --- .../record-show/hooks/useRecordShowContainerTabs.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerTabs.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerTabs.ts index e475c0f34..5d10045d1 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerTabs.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerTabs.ts @@ -160,6 +160,9 @@ export const useRecordShowContainerTabs = ( }, timeline: null, fields: null, + tasks: null, + notes: null, + files: null, }, }, [CoreObjectNameSingular.WorkflowVersion]: { @@ -179,6 +182,9 @@ export const useRecordShowContainerTabs = ( }, }, timeline: null, + tasks: null, + notes: null, + files: null, }, }, [CoreObjectNameSingular.WorkflowRun]: { @@ -212,6 +218,9 @@ export const useRecordShowContainerTabs = ( }, }, timeline: null, + tasks: null, + notes: null, + files: null, }, }, }),