diff --git a/src/components/EditorHeader/Modal/ImportDiagram.jsx b/src/components/EditorHeader/Modal/ImportDiagram.jsx index 3d744c485..5d0898fc1 100644 --- a/src/components/EditorHeader/Modal/ImportDiagram.jsx +++ b/src/components/EditorHeader/Modal/ImportDiagram.jsx @@ -170,8 +170,8 @@ export default function ImportDiagram({ } const reader = new FileReader(); reader.onload = async (e) => { - if (importFrom == IMPORT_FROM.JSON) loadJsonData(f, e); - if (importFrom == IMPORT_FROM.DBML) loadDBMLData(e); + if (importFrom === IMPORT_FROM.JSON) loadJsonData(f, e); + if (importFrom === IMPORT_FROM.DBML) loadDBMLData(e); }; reader.readAsText(f);