ソースを参照

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

ayush.goyal 4 年 前
コミット
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);
+        });
       });
       });
     };
     };