diff --git a/specifyweb/frontend/js_src/lib/components/FormSliders/IntegratedRecordSelector.tsx b/specifyweb/frontend/js_src/lib/components/FormSliders/IntegratedRecordSelector.tsx index 68040a12f84..61a4276868f 100644 --- a/specifyweb/frontend/js_src/lib/components/FormSliders/IntegratedRecordSelector.tsx +++ b/specifyweb/frontend/js_src/lib/components/FormSliders/IntegratedRecordSelector.tsx @@ -113,9 +113,6 @@ export function IntegratedRecordSelector({ const [isDialogOpen, handleOpenDialog, handleCloseDialog] = useBooleanState(); - const isTaxonTreeDefItemTable = - collection.table.specifyTable.name === 'TaxonTreeDefItem'; - const isAttachmentTable = collection.table.specifyTable.name.includes('Attachment'); @@ -123,6 +120,9 @@ export function IntegratedRecordSelector({ relationship.relatedTable.name === 'CollectionObjectGroupJoin' && relationship.name === 'children'; + const isTaxonTreeDefItemTable = + collection.table.specifyTable.name === 'TaxonTreeDefItem'; + return ( 0) + (isToOne && collection.models.length > 0) || + isTaxonTreeDefItemTable } onClick={(): void => { focusFirstField();