This commit is contained in:
Jan Prochazka 2022-01-02 19:46:02 +01:00
parent 1eb7a3271e
commit 952d1d6343

View File

@ -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({