mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Better support non-OS Unifi Controllers
This commit is contained in:
parent
4ea279856f
commit
3d89d7ad1b
4 changed files with 66 additions and 46 deletions
|
@ -11,7 +11,7 @@ export default function Container({ error = false, children, service }) {
|
|||
const fields = service?.widget?.fields;
|
||||
const type = service?.widget?.type;
|
||||
if (fields && type) {
|
||||
visibleChildren = children.filter(child => fields.some(field => `${type}.${field}` === child.props?.label));
|
||||
visibleChildren = children.filter(child => fields.some(field => `${type}.${field}` === child?.props?.label));
|
||||
}
|
||||
|
||||
return <div className="relative flex flex-row w-full">{visibleChildren}</div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue