From 952d1d6343d0744dbeef45ddcf33f6f43692e10e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 2 Jan 2022 19:46:02 +0100 Subject: [PATCH] tabs fix --- packages/web/src/utility/openNewTab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/utility/openNewTab.ts b/packages/web/src/utility/openNewTab.ts index ded77416..5e652aeb 100644 --- a/packages/web/src/utility/openNewTab.ts +++ b/packages/web/src/utility/openNewTab.ts @@ -169,7 +169,7 @@ export function groupTabs(tabs: any[]) { for (const tab of sortTabs(tabs)) { const lastGroup = res[res.length - 1]; - if (lastGroup?.tabDbKey == tab.tabDbKey) { + if (lastGroup && tab.tabDbKey && lastGroup.tabDbKey == tab.tabDbKey) { lastGroup.tabs.push(tab); } else { res.push({