From 15610626f1da0d566febe8cb9668b98a8d092fc4 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 10 Sep 2018 23:41:11 +0200 Subject: [PATCH] fix for import issue --- src/routes/api/import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]; }