The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fixed single record picker missing dropdown separator (#12672)
Lucas Bordeau01a69f6288b3
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/SingleRecordPickerMenuItemsWithSearch.tsx b/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/SingleRecordPickerMenuItemsWithSearch.tsxindex fb2d7fcead4..4c2f1740b29 100644--- a/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/SingleRecordPickerMenuItemsWithSearch.tsx+++ b/packages/twenty-front/src/modules/object-record/record-picker/single-record-picker/components/SingleRecordPickerMenuItemsWithSearch.tsx@@ -82,11 +82,13 @@ export const SingleRecordPickerMenuItemsWithSearch = ({{layoutDirection === 'search-bar-on-bottom' && (<>{isDefined(onCreate) && hasObjectUpdatePermissions && (- <DropdownMenuItemsContainer scrollable={false}>- {createNewButton}- </DropdownMenuItemsContainer>+ <>+ <DropdownMenuItemsContainer scrollable={false}>+ {createNewButton}+ </DropdownMenuItemsContainer>+ <DropdownMenuSeparator />+ </>)}- {records.recordsToSelect.length > 0 && <DropdownMenuSeparator />}<SingleRecordPickerMenuItemsrecordsToSelect={records.recordsToSelect}loading={records.loading}@@ -122,13 +124,13 @@ export const SingleRecordPickerMenuItemsWithSearch = ({onRecordSelected,}}/>- {records.recordsToSelect.length > 0 && isDefined(onCreate) && (- <DropdownMenuSeparator />- )}{isDefined(onCreate) && hasObjectUpdatePermissions && (- <DropdownMenuItemsContainer scrollable={false}>- {createNewButton}- </DropdownMenuItemsContainer>+ <>+ <DropdownMenuSeparator />+ <DropdownMenuItemsContainer scrollable={false}>+ {createNewButton}+ </DropdownMenuItemsContainer>+ </>)}</>)}