fix(home): correct clearAll logic to properly handle deletable flag

Signed-off-by: Zeshan Ziya <zeshan.ziya@axelerant.com>
This commit is contained in:
Zeshan Ziya
2025-08-27 12:44:46 +05:30
parent bc7d142350
commit 0d4c4db867
@@ -275,7 +275,7 @@ export const CustomHomepageGrid = (props: CustomHomepageGridProps) => {
};
const clearLayout = () => {
setWidgets(widgets.filter(w => !w.deletable));
setWidgets(widgets.filter(w => w.deletable === false));
};
const changeEditMode = (mode: boolean) => {