Custom object import csv (#3756)
* poc custom object import csv * fix fullname * lint * add relation Ids, fix label full name, add simple test * mock missing fields? * - fix test * validate uuid, fix key in column dropdown, don't save non set composite fields, allow only import relations where toRelationMetadata
This commit is contained in:
@ -129,9 +129,8 @@ export const MatchColumnSelect = ({
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItemsContainer hasMaxHeight>
|
||||
{options?.map((option) => (
|
||||
<>
|
||||
<React.Fragment key={option.label}>
|
||||
<MenuItemSelect
|
||||
key={option.label}
|
||||
selected={value?.label === option.label}
|
||||
onClick={() => handleChange(option)}
|
||||
disabled={
|
||||
@ -152,9 +151,11 @@ export const MatchColumnSelect = ({
|
||||
/>,
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
</React.Fragment>
|
||||
))}
|
||||
{options?.length === 0 && <MenuItem text="No result" />}
|
||||
{options?.length === 0 && (
|
||||
<MenuItem key="No result" text="No result" />
|
||||
)}
|
||||
</DropdownMenuItemsContainer>
|
||||
</DropdownMenu>
|
||||
</StyledFloatingDropdown>,
|
||||
|
||||
Reference in New Issue
Block a user