mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
tabs fix
This commit is contained in:
parent
1eb7a3271e
commit
952d1d6343
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user