From 6753843202934b7eb5649fa35b11aac018d34401 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:51:12 -0800 Subject: [PATCH] Fix: always parse version as a number --- src/utils/config/service-helpers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index ad874290160..5aec29f7a03 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -106,7 +106,11 @@ export async function servicesFromDocker() { 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); } });