From 7de68bacaedf64a9be94d8729bc730083ab2ba20 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Wed, 26 Jun 2024 17:47:07 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=F0=9F=90=9B=20Fix=20active=20?= =?UTF-8?q?session=20display=20in=20targets=20table=20(#2321)"=20(#2364)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fc82980d6849e7a747d8cd3f48fd05eaf816afbd. --- .../app/routes/scopes/scope/projects/targets/index.js | 8 -------- 1 file changed, 8 deletions(-) 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')); } /**