fix: preserve sidebar title/icon on partial page updates

This commit is contained in:
Philipinho
2026-06-15 22:25:50 +01:00
parent e9e6fba886
commit 58cead4199
@@ -455,7 +455,11 @@ export function invalidateOnUpdatePage(
...page,
items: page.items.map((sidebarPage: IPage) =>
sidebarPage.id === id
? { ...sidebarPage, title: title, icon: icon }
? {
...sidebarPage,
...(title !== undefined ? { title } : {}),
...(icon !== undefined ? { icon } : {}),
}
: sidebarPage,
),
})),