فهرست منبع

success to show the same version data immediately

kaori-t 5 سال پیش
والد
کامیت
6155bb83bd
2فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 2 0
      src/client/js/components/Admin/ImportData/GrowiArchiveSection.jsx
  2. 1 0
      src/server/routes/apiv3/import.js

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

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

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

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