yusuketk 5 лет назад
Родитель
Сommit
80d8f73741

+ 1 - 1
src/client/js/components/Admin/App/AppSettingsPage.jsx

@@ -26,7 +26,7 @@ function AppSettingsPage(props) {
 }
 }
 
 
 function RenderAppSettingsPage(props) {
 function RenderAppSettingsPage(props) {
-  if (props.adminAppContainer.state.title === 0) {
+  if (props.adminAppContainer.state.title === props.adminAppContainer.dummyTitle) {
     throw new Promise(async() => {
     throw new Promise(async() => {
       try {
       try {
         await props.adminAppContainer.retrieveAppSettingsData();
         await props.adminAppContainer.retrieveAppSettingsData();

+ 2 - 1
src/client/js/services/AdminAppContainer.js

@@ -16,11 +16,12 @@ export default class AdminAppContainer extends Container {
     super();
     super();
 
 
     this.appContainer = appContainer;
     this.appContainer = appContainer;
+    this.dummyTitle = 0;
 
 
     this.state = {
     this.state = {
       retrieveError: null,
       retrieveError: null,
       // set dummy value tile for using suspense
       // set dummy value tile for using suspense
-      title: 0,
+      title: this.dummyTitle,
       confidential: '',
       confidential: '',
       globalLang: '',
       globalLang: '',
       fileUpload: '',
       fileUpload: '',