mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-18 16:53:58 +00:00
Return types after import
This commit is contained in:
@@ -138,14 +138,18 @@ export default function Modal({
|
||||
return;
|
||||
}
|
||||
|
||||
const d = importSQL(ast, database === DB.GENERIC ? importDb : database, database);
|
||||
const d = importSQL(
|
||||
ast,
|
||||
database === DB.GENERIC ? importDb : database,
|
||||
database,
|
||||
);
|
||||
if (importSource.overwrite) {
|
||||
setTables(d.tables);
|
||||
setRelationships(d.relationships);
|
||||
setTransform((prev) => ({ ...prev, pan: { x: 0, y: 0 } }));
|
||||
setNotes([]);
|
||||
setAreas([]);
|
||||
setTypes([]);
|
||||
setTypes(d.types ?? []);
|
||||
setUndoStack([]);
|
||||
setRedoStack([]);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user