fix(import): apply layouts when connections already exist
This commit is contained in:
1 parent
71136377e5
commit
2f3a32955c
4 files changed
+264
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user