Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

fix the plus between documentationTypes and \n\n

Luis Carloscb6c8bcbfd7f
diff --git a/src/utils/exportAs/documentation.js b/src/utils/exportAs/documentation.js
index 61e571c4..e47900ea 100644
--- a/src/utils/exportAs/documentation.js
+++ b/src/utils/exportAs/documentation.js
@@ -65,6 +65,6 @@ export function jsonToDocumentation(obj) {
`## Introduction\n\n## Database type\n\n- **Database system:** `+
`${databases[obj.database].name}\n## Table structure\n\n${documentationEntities}`+
`\n## Relationships\n\n${documentationRelationships}\n` +
- `${databases[obj.database].hasTypes && obj.types.length > 0 ? `## Types\n\n` + documentationTypes`\n\n` : "" }` +
+ `${databases[obj.database].hasTypes && obj.types.length > 0 ? `## Types\n\n` + documentationTypes + `\n\n` : "" }` +
`## Database Diagram\n\n\`\`\`mermaid\n${jsonToMermaid(obj)}\n\`\`\``;
}
\ No newline at end of file