🐛 Fix overwriting not affected apps and widgets in categories #665

This commit is contained in:
Manuel
2023-01-30 21:03:27 +01:00
parent 1977c7478e
commit 561055d5d6

View File

@@ -200,7 +200,11 @@ export const useCategoryActions = (configName: string | undefined, category: Cat
return false; return false;
} }
return app.area.properties.id !== mainWrapperId; if (app.area.properties.id === mainWrapperId) {
return false;
}
return app.area.properties.id === currentItem.id;
}; };
const isWidgetAffectedFilter = (widget: IWidget<string, any>): boolean => { const isWidgetAffectedFilter = (widget: IWidget<string, any>): boolean => {
@@ -212,7 +216,11 @@ export const useCategoryActions = (configName: string | undefined, category: Cat
return false; return false;
} }
return widget.area.properties.id !== mainWrapperId; if (widget.area.properties.id === mainWrapperId) {
return false;
}
return widget.area.properties.id === currentItem.id;
}; };
return { return {