diff --git a/ui/desktop/app/routes/scopes/scope/projects/targets/index.js b/ui/desktop/app/routes/scopes/scope/projects/targets/index.js index eeaf36d1d..6557ee06a 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/targets/index.js +++ b/ui/desktop/app/routes/scopes/scope/projects/targets/index.js @@ -10,7 +10,6 @@ import { STATUS_SESSION_PENDING, } from 'api/models/session'; import { action } from '@ember/object'; -import { run } from '@ember/runloop'; export default class ScopesScopeProjectsTargetsIndexRoute extends Route { // =services @@ -73,13 +72,6 @@ export default class ScopesScopeProjectsTargetsIndexRoute extends Route { */ beforeModel() { if (!this.session.isAuthenticated) this.router.transitionTo('index'); - - // Unload all sessions from the store as we might have sessions still in store - // if they were canceled outside of the desktop client - // Not wrapping it an ember run seems to cause a test to fail as well as an error - // if you switch between orgs due to a similar issue as this - // https://github.com/emberjs/data/issues/5447#issuecomment-845672812 - run(() => this.store.unloadAll('session')); } /**