Skip to content

Commit

Permalink
Wait before refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
jm9e committed Oct 17, 2018
1 parent 09052bd commit 5eca78c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/index.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ export class IndexComponent {

public async upload() {
await this.uploader.uploadAll();
await this.refreshOperators();
const that = this;
setTimeout(async function () {
await that.refreshOperators();
}, 2000);
}

public async save(opDef: OperatorDef): Promise<boolean> {
Expand Down

0 comments on commit 5eca78c

Please sign in to comment.