Skip to content

Commit

Permalink
fix: Remove many to many relation option (twentyhq#7360)
Browse files Browse the repository at this point in the history
## Description

- This PR addresses the issue twentyhq#7359
  • Loading branch information
harshit078 authored Oct 1, 2024
1 parent c505a8e commit 3a0c32a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions packages/twenty-front/src/generated-metadata/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,15 +984,13 @@ export type RelationDefinition = {

/** Relation definition type */
export enum RelationDefinitionType {
ManyToMany = 'MANY_TO_MANY',
ManyToOne = 'MANY_TO_ONE',
OneToMany = 'ONE_TO_MANY',
OneToOne = 'ONE_TO_ONE'
}

/** Type of the relation */
export enum RelationMetadataType {
ManyToMany = 'MANY_TO_MANY',
ManyToOne = 'MANY_TO_ONE',
OneToMany = 'ONE_TO_MANY',
OneToOne = 'ONE_TO_ONE'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
IconComponent,
IllustrationIconManyToMany,
IllustrationIconOneToMany,
IllustrationIconOneToOne,
} from 'twenty-ui';
Expand Down Expand Up @@ -35,11 +34,4 @@ export const RELATION_TYPES: Record<
imageSrc: OneToManySvg,
isImageFlipped: true,
},
// Not supported yet
[RelationDefinitionType.ManyToMany]: {
label: 'Belongs to many',
Icon: IllustrationIconManyToMany,
imageSrc: OneToManySvg,
isImageFlipped: true,
},
};

0 comments on commit 3a0c32a

Please sign in to comment.