diff --git a/apps/desktop/src/store/session-states-eviction.test.ts b/apps/desktop/src/store/session-states-eviction.test.ts index 19432e7a69..8958df05ee 100644 --- a/apps/desktop/src/store/session-states-eviction.test.ts +++ b/apps/desktop/src/store/session-states-eviction.test.ts @@ -67,7 +67,7 @@ describe('publish-time eviction', () => { expect($sessionStates.get()['rt-2']).toBeDefined() }) - it('keeps the primary view\'s settled session', () => { + it("keeps the primary view's settled session", () => { $activeSessionId.set('rt-1') publishSessionState('rt-1', state('stored-1', { busy: true })) publishSessionState('rt-1', state('stored-1', { busy: false })) @@ -83,7 +83,7 @@ describe('publish-time eviction', () => { }) describe('closeSessionTile eviction', () => { - it('drops a settled session\'s state on close — no later publish may come', () => { + it("drops a settled session's state on close — no later publish may come", () => { $sessionTiles.set([{ runtimeId: 'rt-1', storedSessionId: 'stored-1' }]) publishSessionState('rt-1', state('stored-1', { busy: false })) @@ -92,7 +92,7 @@ describe('closeSessionTile eviction', () => { expect($sessionStates.get()['rt-1']).toBeUndefined() }) - it('keeps a busy session\'s state on close — the background turn is still running', () => { + it("keeps a busy session's state on close — the background turn is still running", () => { $sessionTiles.set([{ runtimeId: 'rt-1', storedSessionId: 'stored-1' }]) publishSessionState('rt-1', state('stored-1', { busy: true })) diff --git a/apps/desktop/src/store/session-states.ts b/apps/desktop/src/store/session-states.ts index 9e6b33c427..1064b90d7a 100644 --- a/apps/desktop/src/store/session-states.ts +++ b/apps/desktop/src/store/session-states.ts @@ -200,9 +200,9 @@ function runtimeReferenced(runtimeId: string, storedSessionId: null | string): b return true } - return $sessionTiles.get().some( - t => t.runtimeId === runtimeId || (storedSessionId !== null && t.storedSessionId === storedSessionId) - ) + return $sessionTiles + .get() + .some(t => t.runtimeId === runtimeId || (storedSessionId !== null && t.storedSessionId === storedSessionId)) } /** A state no surface needs anymore: its turn is over (not busy, not waiting