mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-11-09 02:00:07 +00:00
Fix types and enums not being imported (#224)
This commit is contained in:
@@ -90,6 +90,12 @@ export default function Modal({
|
|||||||
if (importData.title) {
|
if (importData.title) {
|
||||||
setTitle(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) => {
|
const loadDiagram = async (id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user