Skip to content

Commit

Permalink
Fix types and enums not being imported (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilit committed Aug 24, 2024
1 parent 1ec8e1d commit f9e7810
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/EditorHeader/Modal/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f9e7810

Please sign in to comment.