Просмотр исходного кода

add timeout for updating infras

Alexander Belanger 5 лет назад
Родитель
Сommit
89a099bf42
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      dashboard/src/main/home/provisioner/ProvisionerLogs.tsx

+ 4 - 1
dashboard/src/main/home/provisioner/ProvisionerLogs.tsx

@@ -168,7 +168,10 @@ class ProvisionerLogs extends Component<PropsType, StateType> {
           maxStep: validEvents[validEvents.length - 1]["total_resources"]
         },
         () => {
-          this.props.updateInfras();
+          setTimeout(() => {
+            this.props.updateInfras();
+          }, 3000)
+          
           this.scrollToBottom();
         }
       );