mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-11 03:12:07 +08:00
Enhancement: npm widget support ≥ v2.12 (#4140)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user