Переглянути джерело

[importer] auto table creation failing for waiting 500ms so using 'waitforobservale' function for submit

ayush.goyal 5 роки тому
батько
коміт
94cf663745
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      desktop/core/src/desktop/js/onePageViewModel.js

+ 2 - 2
desktop/core/src/desktop/js/onePageViewModel.js

@@ -462,9 +462,9 @@ class OnePageViewModel {
         vm.currentStep(2);
         vm.currentStep(2);
         vm.createWizard.source.interpreter(interpreter);
         vm.createWizard.source.interpreter(interpreter);
         vm.createWizard.destination.name(databasename + '.' + table.substring(0, table.length - 4));
         vm.createWizard.destination.name(databasename + '.' + table.substring(0, table.length - 4));
-        window.setTimeout(() => {
+        waitForObservable(vm.createWizard.destination.name, () => {
           vm.createWizard.indexFile();
           vm.createWizard.indexFile();
-        }, 500);
+        });
       });
       });
     };
     };