Skip to content

Commit

Permalink
fix: handle folders activation from callback
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Jan 13, 2022
1 parent 21cae92 commit 350815f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
8 changes: 6 additions & 2 deletions app/assets/javascripts/ui_models/app_state/app_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class AppState {
);
}

async setFoldersComponent(component?: SNComponent) {
setFoldersComponent(component?: SNComponent) {
const foldersComponentViewer = this.foldersComponentViewer;

if (foldersComponentViewer) {
Expand Down Expand Up @@ -343,7 +343,11 @@ export class AppState {
.componentsForArea(ComponentArea.TagsList)
.find((component) => component.active);

this.setFoldersComponent(componentViewer);
this.application.performFunctionWithAngularDigestCycleAfterAsyncChange(
() => {
this.setFoldersComponent(componentViewer);
}
);
}
}
);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 5 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand All @@ -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"
Expand Down

0 comments on commit 350815f

Please sign in to comment.