Clean up export as

This commit is contained in:
1ilit
2024-08-03 13:22:19 +03:00
parent 8e430a3b17
commit 726a93108c
3 changed files with 48 additions and 40 deletions

View File

@@ -29,7 +29,6 @@ import {
jsonToSQLite,
jsonToMariaDB,
jsonToSQLServer,
jsonToMermaid,
} from "../../utils/exportSQL/generic";
import {
ObjectType,
@@ -68,6 +67,7 @@ import Modal from "./Modal/Modal";
import { useTranslation } from "react-i18next";
import { exportSQL } from "../../utils/exportSQL";
import { databases } from "../../data/databases";
import { jsonToMermaid } from "../../utils/exportAs/mermaid";
export default function ControlPanel({
diagramId,
@@ -1052,7 +1052,6 @@ export default function ControlPanel({
database: database,
title: title,
});
// generate .md file
setExportData((prev) => ({
...prev,
data: result,