mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 23:36:01 +00:00
tabs fix
This commit is contained in:
@@ -169,7 +169,7 @@ export function groupTabs(tabs: any[]) {
|
|||||||
|
|
||||||
for (const tab of sortTabs(tabs)) {
|
for (const tab of sortTabs(tabs)) {
|
||||||
const lastGroup = res[res.length - 1];
|
const lastGroup = res[res.length - 1];
|
||||||
if (lastGroup?.tabDbKey == tab.tabDbKey) {
|
if (lastGroup && tab.tabDbKey && lastGroup.tabDbKey == tab.tabDbKey) {
|
||||||
lastGroup.tabs.push(tab);
|
lastGroup.tabs.push(tab);
|
||||||
} else {
|
} else {
|
||||||
res.push({
|
res.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user