From d101870253cf1bf09472e966db75dfcca81c1886 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 18 Aug 2020 16:58:17 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20issue=20where=20glo?= =?UTF-8?q?bal=20doesn't=20redirect=20to=20orgs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/app/routes/scopes/scope.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/core/app/routes/scopes/scope.js b/ui/core/app/routes/scopes/scope.js index 06158aa4d..08cd2d207 100644 --- a/ui/core/app/routes/scopes/scope.js +++ b/ui/core/app/routes/scopes/scope.js @@ -22,11 +22,11 @@ export default class ScopesScopeRoute extends Route { model({ scope_id: id }) { // Since only global and org scopes are authenticatable, we can infer type // from ID because global has a fixed ID. - const scopeType = id === 'global' ? 'global' : 'org'; + const type = id === 'global' ? 'global' : 'org'; return this.store.findRecord('scope', id).catch(() => { const maybeExistingScope = this.store.peekRecord('scope', id); - const scopeOptions = { id, scopeType }; - if (scopeType === 'global') { + const scopeOptions = { id, type }; + if (type === 'global') { scopeOptions.name = this.intl.t('titles.global'); } return maybeExistingScope ||