Преглед изворни кода

insert null to data as default

kaori-t пре 5 година
родитељ
комит
8e88d8fcb6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/routes/apiv3/import.js

+ 1 - 1
src/server/routes/apiv3/import.js

@@ -306,7 +306,7 @@ module.exports = (crowi) => {
   router.post('/upload', uploads.single('file'), accessTokenParser, loginRequired, adminRequired, csrf, async(req, res) => {
     const { file } = req;
     const zipFile = importService.getFile(file.filename);
-    let data;
+    let data = null;
 
     try {
       data = await growiBridgeService.parseZipFile(zipFile);