diff --git a/src/routes/api/import.js b/src/routes/api/import.js index d6209f357..f424211fa 100644 --- a/src/routes/api/import.js +++ b/src/routes/api/import.js @@ -15,7 +15,7 @@ async function importToBranch(req) { const parentNoteId = req.params.parentNoteId; const file = req.file; - if (file) { + if (!file) { return [400, "No file has been uploaded"]; }