Skip to content

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

Fix import JSON missing type (#872)

XC1c2c3a517bcf
diff --git a/src/components/EditorHeader/ControlPanel.jsx b/src/components/EditorHeader/ControlPanel.jsx
index f7d44dcb..fdd3919c 100644
--- a/src/components/EditorHeader/ControlPanel.jsx
+++ b/src/components/EditorHeader/ControlPanel.jsx
@@ -916,7 +916,10 @@ export default function ControlPanel({
import_from: {
children: [
{
- function: fileImport,
+ function: () => {
+ setModal(MODAL.IMPORT);
+ setImportFrom(IMPORT_FROM.JSON);
+ },
name: "JSON",
disabled: layout.readOnly,
},