From: Galen Charlton Date: Wed, 8 Dec 2021 21:54:29 +0000 (-0500) Subject: LP#1942220: eg-item-location-select: do more unbreaking of contextOrgId X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=86418d69a7f93ad82b80c3b8407fb9500f8d8192;p=working%2FEvergreen.git LP#1942220: eg-item-location-select: do more unbreaking of contextOrgId Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts b/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts index e95124590c..e150c5bbdc 100644 --- a/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts +++ b/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts @@ -262,7 +262,9 @@ export class ItemLocationSelectComponent } const orgsFromCache = this.loc.filterOrgsCache[this.permFilter]; - if (orgsFromCache) { + if (orgsFromCache && !this._contextOrgId) { + // if we're using contextOrgId, it may well change, so + // don't use the cache return Promise.resolve(this.filterOrgs = orgsFromCache); }