fix(import): apply layouts when connections already exist

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-08-16 14:10:30 +08:00
1 parent 71136377e5
commit 2f3a32955c
4 files changed
+264 -3

No files matched your search

+2 -1
View File
@@ -53,6 +53,7 @@ import {
collapseAllGroups as collapseAllGroupsOp,
moveConnectionToGroup as moveConnectionToGroupOp,
remapSidebarLayoutConnectionIds,
mergeSidebarLayout,
reorderEntry as reorderEntryOp,
buildConnectionGroupPathMap,
connectionSidebarSearchAliases,
@@ -7857,7 +7858,7 @@ export const useConnectionStore = defineStore("connection", () => {
function applySidebarLayout(layout: SidebarLayout) {
const reconciledLayout = reconcileLayout(
connections.value.map((c) => c.id),
layout,
mergeSidebarLayout(sidebarLayout.value, layout),
);
updateLayoutAndRebuild(reconciledLayout);
}