From 62705670e3456f486c89c6f62ce9d9b8a30c008c Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 2 Jan 2024 14:26:30 +0100 Subject: [PATCH] fix(ui): fix for activeTab prop for assist session --- frontend/app/player/web/MessageManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/player/web/MessageManager.ts b/frontend/app/player/web/MessageManager.ts index f7ea33245..b87406227 100644 --- a/frontend/app/player/web/MessageManager.ts +++ b/frontend/app/player/web/MessageManager.ts @@ -200,7 +200,9 @@ export default class MessageManager { if (!!lastThrashing && t - lastThrashing.time < 300) { this.screen.cursor.shake(); } - + if (!this.activeTab) { + this.activeTab = this.state.get().currentTab ?? Object.keys(this.tabs)[0]; + } if (tabId) { if (this.activeTab !== tabId) { this.state.update({ currentTab: tabId });