diff --git a/app/assets/javascripts/ui_models/app_state/app_state.ts b/app/assets/javascripts/ui_models/app_state/app_state.ts index 84128a8c6..712e515ab 100644 --- a/app/assets/javascripts/ui_models/app_state/app_state.ts +++ b/app/assets/javascripts/ui_models/app_state/app_state.ts @@ -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); + } + ); } } ); diff --git a/package.json b/package.json index 6ae28e1be..18211cf55 100644 --- a/package.json +++ b/package.json @@ -86,10 +86,10 @@ "@reach/dialog": "^0.16.2", "@reach/listbox": "^0.16.2", "@reach/tooltip": "^0.16.2", - "@standardnotes/features": "1.20.6", + "@standardnotes/features": "1.20.7", "@standardnotes/settings": "^1.9.0", "@standardnotes/sncrypto-web": "1.5.3", - "@standardnotes/snjs": "2.35.4", + "@standardnotes/snjs": "2.35.5", "mobx": "^6.3.5", "mobx-react-lite": "^3.2.2", "preact": "^10.5.15", diff --git a/yarn.lock b/yarn.lock index d2756556b..453aa7902 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2628,15 +2628,7 @@ dependencies: "@standardnotes/auth" "^3.8.1" -"@standardnotes/features@1.20.6": - version "1.20.6" - resolved "https://registry.yarnpkg.com/@standardnotes/features/-/features-1.20.6.tgz#94d397892dd12f76a10c89c70092933627a9c457" - integrity sha512-/w8+/8J8UNJ+DAsOud8XbWkeUBN6eb+5+Ic4NgkXYkx/wv6sTDk9XVc+mOhxOkYlb2iy85JDmoLAwu+GW/3Gtg== - dependencies: - "@standardnotes/auth" "3.8.3" - "@standardnotes/common" "1.2.1" - -"@standardnotes/features@^1.20.7": +"@standardnotes/features@1.20.7", "@standardnotes/features@^1.20.7": version "1.20.7" resolved "https://registry.yarnpkg.com/@standardnotes/features/-/features-1.20.7.tgz#d666569492e942eaecc05e40a79d50d33df4fbe9" integrity sha512-eaZu/+PvHYXWaq6r3ET87t52lZqFknZVUEjspAL34Fdr+5cDma5ZRoylx6hPCVDO9VpHd6fjGWlS+5kZ+qJ+bA== @@ -2663,10 +2655,10 @@ buffer "^6.0.3" libsodium-wrappers "^0.7.9" -"@standardnotes/snjs@2.35.4": - version "2.35.4" - resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.35.4.tgz#a2c9ce3dba999f63c4b608c2ca917e07824ddaa1" - integrity sha512-o0OIbnoxJNYxllaXiLFEGpINbflKZ9p5mTi0nbwHlfJ+iq99doTQmguGg6S0kLpYaMZhPQvRs43ZZaWtC8ryvA== +"@standardnotes/snjs@2.35.5": + version "2.35.5" + resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.35.5.tgz#eddeb2ec084d3828ffbec5bbece8ba6483956234" + integrity sha512-nftxSfHhS45jTUfe98rTV1Ie3zLVrke2M1U8OwttA7vQvg5e9f3aoLUml5efNMe02r7xVYf09/BIwxvZ0Zo4uw== dependencies: "@standardnotes/auth" "3.8.1" "@standardnotes/common" "1.2.1"