@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.
- package/package.json +1 -1
- package/registry.ts +1 -0
package/package.json
CHANGED
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;
|