Fixed error in getUnitsVariable function

This commit is contained in:
Pax1601
2023-11-23 20:08:37 +01:00
parent 00f2a3c19d
commit b442d238cd
3 changed files with 11 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ export class UnitsManager {
var value: any = variableGetter(units[0]);
units.forEach((unit: Unit) => {
if (variableGetter(unit) !== value)
return undefined;
value = undefined;
});
return value;
};