Skip to content

Commit

Permalink
feat(FOROME-1281): make fun async
Browse files Browse the repository at this point in the history
  • Loading branch information
QSdmitrioul committed Jul 7, 2022
1 parent 927876d commit 96523ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/store/dtree/dtree.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,15 @@ export class DtreeStore {
this.setDtreeModifiedState(DtreeModifiedState.NotDtree)
}

public clearAll(): void {
public async clearAll() {
this.actionHistory.resetHistory()
this.localDtreeCode = ''
this._previousDtreeCode = ''
this.startDtreeCode = ''
this.currentDtreeName = ''
filterDtrees.resetActiveDtree()
this.loadEmptyTree().then(() => {
this.setDtreeModifiedState(DtreeModifiedState.NotDtree)
})
await this.loadEmptyTree()
this.setDtreeModifiedState(DtreeModifiedState.NotDtree)
}

// 2. UI functions to display adding / deleting / editing steps
Expand Down

0 comments on commit 96523ea

Please sign in to comment.