Merge pull request #341 from tasnim0tantawi/fix-mermaid

fix mermaid cardinality
This commit is contained in:
1ilit
2025-02-05 15:46:38 +04:00
committed by GitHub

View File

@@ -10,10 +10,10 @@ export function jsonToMermaid(obj) {
return "||--||";
case i18n.t(Cardinality.MANY_TO_ONE_TO_ONE):
case Cardinality.MANY_TO_ONE:
return "||--o{";
return "}o--||";
case i18n.t(Cardinality.ONE_TO_MANY):
case Cardinality.ONE_TO_MANY:
return "}o--||";
return "||--o{";
default:
return "--";
}