fix(ui): fix for activeTab prop for assist session

This commit is contained in:
nick-delirium 2024-01-02 14:26:30 +01:00
parent 716dc6a2ff
commit 62705670e3

View file

@ -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 });