Merge pull request #30788 from jboeijenga/fix/clear-custom-homepage-layout

fix(home): Prevent clearAll method from removing non-deletable widgets in custom homepage layout
This commit is contained in:
Fredrik Adelöw
2025-08-19 09:15:29 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---
Fixed bug in CustomHomepageGrid where `clearAll` did not respect the `deletable` flag on widgets
@@ -275,7 +275,7 @@ export const CustomHomepageGrid = (props: CustomHomepageGridProps) => {
};
const clearLayout = () => {
setWidgets([]);
setWidgets(widgets.filter(w => !w.deletable));
};
const changeEditMode = (mode: boolean) => {