Enhancement: npm widget support ≥ v2.12 (#4140)

This commit is contained in:
shamoon
2024-10-16 07:57:35 -07:00
committed by GitHub
parent cf9109384e
commit aac573a48d
2 changed files with 5 additions and 6 deletions

View File

@@ -21,8 +21,8 @@ export default function Component({ service }) {
);
}
const enabled = infoData.filter((c) => c.enabled === 1).length;
const disabled = infoData.filter((c) => c.enabled === 0).length;
const enabled = infoData.filter((c) => !!c.enabled).length;
const disabled = infoData.filter((c) => !c.enabled).length;
const total = infoData.length;
return (