mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 20:06:00 +00:00
tabs fix
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user