UI: Fix Math Function node to display and persist 0 as default argument value

This commit is contained in:
Vladyslav Prykhodko 2025-07-16 21:43:01 +03:00
parent d567a0662c
commit 285cf422cc

View File

@ -194,7 +194,7 @@ export class ArgumentsMapConfigComponent extends PageComponent implements Contro
key: [property?.key, [Validators.required]], key: [property?.key, [Validators.required]],
name: [ArgumentName[index], [Validators.required]], name: [ArgumentName[index], [Validators.required]],
attributeScope: [property?.attributeScope ?? AttributeScope.SERVER_SCOPE, [Validators.required]], attributeScope: [property?.attributeScope ?? AttributeScope.SERVER_SCOPE, [Validators.required]],
defaultValue: [property?.defaultValue ? property?.defaultValue : null] defaultValue: [property?.defaultValue ?? null]
}); });
this.updateArgumentControlValidators(argumentControl); this.updateArgumentControlValidators(argumentControl);
argumentControl.get('type').valueChanges.pipe( argumentControl.get('type').valueChanges.pipe(