minor fix - reset single entity search (#7420)
minor follow up fix #7285 --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import {
|
||||
IconComponent,
|
||||
IllustrationIconManyToMany,
|
||||
IllustrationIconOneToMany,
|
||||
IllustrationIconOneToOne,
|
||||
} from 'twenty-ui';
|
||||
@ -34,4 +35,11 @@ export const RELATION_TYPES: Record<
|
||||
imageSrc: OneToManySvg,
|
||||
isImageFlipped: true,
|
||||
},
|
||||
// Not supported yet
|
||||
[RelationDefinitionType.ManyToMany]: {
|
||||
label: 'Belongs to many',
|
||||
Icon: IllustrationIconManyToMany,
|
||||
imageSrc: OneToManySvg,
|
||||
isImageFlipped: true,
|
||||
},
|
||||
};
|
||||
|
||||
@ -66,7 +66,11 @@ const StyledInputsContainer = styled.div`
|
||||
`;
|
||||
|
||||
const RELATION_TYPE_OPTIONS = Object.entries(RELATION_TYPES)
|
||||
.filter(([value]) => 'ONE_TO_ONE' !== value && 'MANY_TO_MANY' !== value)
|
||||
.filter(
|
||||
([value]) =>
|
||||
RelationDefinitionType.OneToOne !== value &&
|
||||
RelationDefinitionType.ManyToMany !== value,
|
||||
)
|
||||
.map(([value, { label, Icon }]) => ({
|
||||
label,
|
||||
value: value as RelationType,
|
||||
|
||||
Reference in New Issue
Block a user