Better support non-OS Unifi Controllers
This commit is contained in:
1 parent
4ea279856f
commit
3d89d7ad1b
4 files changed
+66
-46
No files matched your search
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user