fix: handle folders activation from callback

This commit is contained in:
Mo
2022-01-13 09:45:57 -06:00
parent 21cae92891
commit 350815fc58
3 changed files with 13 additions and 17 deletions

View File

@@ -304,7 +304,7 @@ export class AppState {
);
}
async setFoldersComponent(component?: SNComponent) {
setFoldersComponent(component?: SNComponent) {
const foldersComponentViewer = this.foldersComponentViewer;
if (foldersComponentViewer) {
@@ -343,7 +343,11 @@ export class AppState {
.componentsForArea(ComponentArea.TagsList)
.find((component) => component.active);
this.setFoldersComponent(componentViewer);
this.application.performFunctionWithAngularDigestCycleAfterAsyncChange(
() => {
this.setFoldersComponent(componentViewer);
}
);
}
}
);