fix: Remove many to many relation option (#7360)

## Description

- This PR addresses the issue #7359
This commit is contained in:
Harshit Singh
2024-10-01 15:58:19 +02:00
committed by GitHub
parent c505a8edd2
commit 3a0c32a88d
2 changed files with 0 additions and 10 deletions
@@ -984,7 +984,6 @@ export type RelationDefinition = {
/** Relation definition type */ /** Relation definition type */
export enum RelationDefinitionType { export enum RelationDefinitionType {
ManyToMany = 'MANY_TO_MANY',
ManyToOne = 'MANY_TO_ONE', ManyToOne = 'MANY_TO_ONE',
OneToMany = 'ONE_TO_MANY', OneToMany = 'ONE_TO_MANY',
OneToOne = 'ONE_TO_ONE' OneToOne = 'ONE_TO_ONE'
@@ -992,7 +991,6 @@ export enum RelationDefinitionType {
/** Type of the relation */ /** Type of the relation */
export enum RelationMetadataType { export enum RelationMetadataType {
ManyToMany = 'MANY_TO_MANY',
ManyToOne = 'MANY_TO_ONE', ManyToOne = 'MANY_TO_ONE',
OneToMany = 'ONE_TO_MANY', OneToMany = 'ONE_TO_MANY',
OneToOne = 'ONE_TO_ONE' OneToOne = 'ONE_TO_ONE'
@@ -1,6 +1,5 @@
import { import {
IconComponent, IconComponent,
IllustrationIconManyToMany,
IllustrationIconOneToMany, IllustrationIconOneToMany,
IllustrationIconOneToOne, IllustrationIconOneToOne,
} from 'twenty-ui'; } from 'twenty-ui';
@@ -35,11 +34,4 @@ export const RELATION_TYPES: Record<
imageSrc: OneToManySvg, imageSrc: OneToManySvg,
isImageFlipped: true, isImageFlipped: true,
}, },
// Not supported yet
[RelationDefinitionType.ManyToMany]: {
label: 'Belongs to many',
Icon: IllustrationIconManyToMany,
imageSrc: OneToManySvg,
isImageFlipped: true,
},
}; };