fix: add calibration index to tray properties and update related logic

This commit is contained in:
2025-02-15 07:14:03 +01:00
parent d4348944fc
commit c21be92e98
3 changed files with 10 additions and 6 deletions

View File

@ -86,6 +86,7 @@ function populateVendorDropdown(data, selectedSmId = null) {
});
// Nach der Schleife: Formatierung der Gesamtlänge
console.log("Total Lenght: ", totalLength);
const formattedLength = totalLength > 1000
? (totalLength / 1000).toFixed(2) + " km"
: totalLength.toFixed(2) + " m";