Exclude empty and zero content references
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m12s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 32s

This commit is contained in:
lzstealth committed 2026-10-24 20:38:59 +01:00
1 parent 0044cbc1fc
commit f7d29ac326
3 files changed
+42 -2

No files matched your search

+2 -1
View File
@@ -30,9 +30,10 @@ function getFontFamilyCandidates(value) {
function addReference(references, seen, ownerKey, referenceType, value) {
let referenceValue = String(value === undefined || value === null ? '' : value).trim();
if (!referenceValue || referenceValue === '0') return;
if (['api-request', 'rss-feed', 'timetable-group', 'weather-location'].includes(referenceType)) {
const numericValue = Number(referenceValue);
if (!Number.isFinite(numericValue)) return;
if (!Number.isFinite(numericValue) || numericValue === 0) return;
referenceValue = String(numericValue);
}
if (referenceType === 'font-family') {