fix: Don't throw errors for NaN in number operators in the filter component (#9506)

This commit is contained in:
Elias Meire
2024-05-30 13:51:45 +02:00
committed by GitHub
parent e55bf0393a
commit 936bbb2068
6 changed files with 66 additions and 8 deletions

View File

@@ -77,6 +77,10 @@ export class Expression {
throw new ApplicationError('invalid DateTime');
}
if (value === null) {
return 'null';
}
let typeName = value.constructor.name ?? 'Object';
if (DateTime.isDateTime(value)) {
typeName = 'DateTime';