Skip to content

The open alternative to Salesforce, designed for AI.

Remove fixed width for dropdown variables, fix optimistic on file upload (#11507)

Thomas Trompette6f5118c67783
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 46c71f19461..e9c156246cc 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<Attachment>({
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 76f5d44e310..a0ccf87f350 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 (
<Dropdown
- dropdownWidth={320}
dropdownId={dropdownId}
dropdownHotkeyScope={{
scope: dropdownId,