From f9e7810702966868672560882726affa96d12c09 Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Sat, 24 Aug 2024 14:46:45 +0400 Subject: [PATCH] Fix types and enums not being imported (#224) --- src/components/EditorHeader/Modal/Modal.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/EditorHeader/Modal/Modal.jsx b/src/components/EditorHeader/Modal/Modal.jsx index af0d78e1..d8acd8f1 100644 --- a/src/components/EditorHeader/Modal/Modal.jsx +++ b/src/components/EditorHeader/Modal/Modal.jsx @@ -90,6 +90,12 @@ export default function Modal({ if (importData.title) { setTitle(importData.title); } + if (databases[database].hasEnums && importData.enums) { + setEnums(importData.enums); + } + if (databases[database].hasTypes && importData.types) { + setTypes(importData.types); + } }; const loadDiagram = async (id) => {