Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix: remove many to many rel option (#933)

Guy Ben-Aharonc567c0a5f391
diff --git a/src/pages/editor-page/side-panel/refs-section/refs-list/relationship-list-item/relationship-list-item-content/relationship-list-item-content.tsx b/src/pages/editor-page/side-panel/refs-section/refs-list/relationship-list-item/relationship-list-item-content/relationship-list-item-content.tsx
index 32a1b86d..61fa4479 100644
--- a/src/pages/editor-page/side-panel/refs-section/refs-list/relationship-list-item/relationship-list-item-content/relationship-list-item-content.tsx
+++ b/src/pages/editor-page/side-panel/refs-section/refs-list/relationship-list-item/relationship-list-item-content/relationship-list-item-content.tsx
@@ -173,9 +173,11 @@ export const RelationshipListItemContent: React.FC<
<SelectItem value="many_to_one">
{t('relationship_type.many_to_one')}
</SelectItem>
- <SelectItem value="many_to_many">
- {t('relationship_type.many_to_many')}
- </SelectItem>
+ {relationshipType === 'many_to_many' ? (
+ <SelectItem value="many_to_many">
+ {t('relationship_type.many_to_many')}
+ </SelectItem>
+ ) : null}
</SelectGroup>
</SelectContent>
</Select>