From 0316c857d810625805e2f2382d300623977a4676 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 9 Jul 2025 13:12:46 +0200 Subject: [PATCH] Remove unwanted workflow fetch on right drawer open (#13122) There was a mistake in the ActionConfig load, we were trying to fetch a workflow with the opened recordId (which is not always a workflow) --- .../contexts/ActionMenuContextProviderWorkflowsEnabled.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/twenty-front/src/modules/action-menu/contexts/ActionMenuContextProviderWorkflowsEnabled.tsx b/packages/twenty-front/src/modules/action-menu/contexts/ActionMenuContextProviderWorkflowsEnabled.tsx index 7ac6e8d17..54dd2deb8 100644 --- a/packages/twenty-front/src/modules/action-menu/contexts/ActionMenuContextProviderWorkflowsEnabled.tsx +++ b/packages/twenty-front/src/modules/action-menu/contexts/ActionMenuContextProviderWorkflowsEnabled.tsx @@ -9,7 +9,6 @@ import { useShouldActionBeRegisteredParams } from '@/action-menu/hooks/useShould import { contextStoreTargetedRecordsRuleComponentState } from '@/context-store/states/contextStoreTargetedRecordsRuleComponentState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2'; -import { useWorkflowWithCurrentVersion } from '@/workflow/hooks/useWorkflowWithCurrentVersion'; export const ActionMenuContextProviderWorkflowsEnabled = ({ objectMetadataItem, @@ -28,13 +27,8 @@ export const ActionMenuContextProviderWorkflowsEnabled = ({ objectMetadataItem, }); - const workflowWithCurrentVersion = useWorkflowWithCurrentVersion( - params.selectedRecord?.id, - ); - const shouldBeRegisteredParams = { ...params, - workflowWithCurrentVersion, }; const actions = useRegisteredActions(shouldBeRegisteredParams);