@pi-unipi/info-screen 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/registry.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/info-screen",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Dashboard and module registry for Unipi — configurable info overlay with tabbed groups",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/registry.ts CHANGED
@@ -224,6 +224,7 @@ class InfoRegistry {
224
224
  const group = this.groups.get(groupId);
225
225
  if (!group) return [];
226
226
 
227
+ if (!group.config?.stats) return [];
227
228
  return group.config.stats.filter((stat) => {
228
229
  if (!isStatEnabled(groupId, stat.id)) return false;
229
230
  return stat.show;