Skip to content

Commit

Permalink
Fix: always parse version as a number
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Dec 18, 2024
1 parent 6b77ae8 commit 6753843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 6753843

Please sign in to comment.