Fix: always parse version as a number

This commit is contained in:
shamoon 2024-12-18 12:51:12 -08:00
parent 6b77ae835b
commit 6753843202

View File

@ -106,7 +106,11 @@ export async function servicesFromDocker() {
type: "service", type: "service",
}; };
} }
shvl.set(constructedService, value, substituteEnvironmentVars(containerLabels[label])); let substitutedVal = substituteEnvironmentVars(containerLabels[label]);
if (value === "widget.version") {
substitutedVal = parseInt(substitutedVal, 10);
}
shvl.set(constructedService, value, substitutedVal);
} }
}); });