Browse Source

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

ayush.goyal 4 years ago
parent
commit
94cf663745
1 changed files with 2 additions and 2 deletions
  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.createWizard.source.interpreter(interpreter);
         vm.createWizard.destination.name(databasename + '.' + table.substring(0, table.length - 4));
-        window.setTimeout(() => {
+        waitForObservable(vm.createWizard.destination.name, () => {
           vm.createWizard.indexFile();
-        }, 500);
+        });
       });
     };