diff --git a/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js b/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js index 05c0b72b9..3f42fb142 100644 --- a/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js +++ b/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js @@ -107,7 +107,9 @@ export default class ScopesScopeProjectsTargetsIndexController extends Controlle const { session_id, address, port, credentials, expiration } = connectionDetails; try { - session = await this.store.findRecord('session', session_id); + session = await this.store.findRecord('session', session_id, { + reload: true, + }); } catch (error) { /** * if the user cannot read or fetch the session we add the important diff --git a/ui/desktop/tests/acceptance/projects/targets/target-test.js b/ui/desktop/tests/acceptance/projects/targets/target-test.js index 00fcb00ed..322346bdf 100644 --- a/ui/desktop/tests/acceptance/projects/targets/target-test.js +++ b/ui/desktop/tests/acceptance/projects/targets/target-test.js @@ -126,11 +126,10 @@ module('Acceptance | projects | targets | target', function (hooks) { this.ipcStub.withArgs('isClientDaemonRunning').returns(true); this.stubClientDaemonSearch( 'targets', + 'sessions', + 'sessions', + 'sessions', 'targets', - 'targets', - 'sessions', - 'sessions', - 'sessions', ); });