Просмотр исходного кода

success to show the same version data immediately

kaori-t 5 лет назад
Родитель
Сommit
6155bb83bd

+ 2 - 0
src/client/js/components/Admin/ImportData/GrowiArchiveSection.jsx

@@ -47,6 +47,8 @@ class GrowiArchiveSection extends React.Component {
   }) {
     this.setState({
       fileName,
+      innerFileStats,
+      isTheSameVersion: true,
     });
   }
 

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

@@ -319,6 +319,7 @@ module.exports = (crowi) => {
     try {
       // validate with meta.json
       importService.validate(data.meta);
+      return res.apiv3(data);
     }
     catch {
       const msg = 'the version of this growi and the growi that exported the data are not met';