From 6f5118c67783a579b649f2216b79a330c422e27d Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Thu, 10 Apr 2025 16:07:32 +0200 Subject: [PATCH] Remove fixed width for dropdown variables, fix optimistic on file upload (#11507) As title --- .../modules/activities/files/hooks/useUploadAttachmentFile.tsx | 1 + .../workflow-variables/components/WorkflowVariablesDropdown.tsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx index 46c71f194..e9c156246 100644 --- a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx +++ b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx @@ -22,6 +22,7 @@ export const useUploadAttachmentFile = () => { const { createOneRecord: createOneAttachment } = useCreateOneRecord({ objectNameSingular: CoreObjectNameSingular.Attachment, + shouldMatchRootQueryFilter: true, }); const uploadAttachmentFile = async ( diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx index 76f5d44e3..a0ccf87f3 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx @@ -92,7 +92,6 @@ export const WorkflowVariablesDropdown = ({ return (