Prevented clearAll from removing non-deletable widgets

Signed-off-by: Jasper Boeijenga <jboeijenga@gmail.com>
This commit is contained in:
Jasper Boeijenga
2025-08-06 10:56:48 +02:00
parent f71a3fcf80
commit 166dfd7c4a
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) => {