mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +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 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user