mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
🐛 Fix overwriting not affected apps and widgets in categories #665
This commit is contained in:
@@ -200,7 +200,11 @@ export const useCategoryActions = (configName: string | undefined, category: Cat
|
||||
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 => {
|
||||
@@ -212,7 +216,11 @@ export const useCategoryActions = (configName: string | undefined, category: Cat
|
||||
return false;
|
||||
}
|
||||
|
||||
return widget.area.properties.id !== mainWrapperId;
|
||||
if (widget.area.properties.id === mainWrapperId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return widget.area.properties.id === currentItem.id;
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user