SUPPORT-8996: 1) Added default value '0' for incorrect or empty 'value' in format()

This commit is contained in:
Artyom Hackimullin 2025-04-16 09:34:14 +03:00
parent 3be5b687d2
commit be04dd6971

View file

@ -3,7 +3,6 @@ import {FormatterUtils} from "./FormatterUtils";
export class NumberToLocalStringFormatter implements TextFormatter {
format(value: string): string {
var result = FormatterUtils.toLocalString(value);
return result ? result : '0';
return value ? FormatterUtils.toLocalString(value) : '0';
}
}