This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit e37ecfc98e1c679483d26458efe1b206081b9099 Author: Alex Heneveld <[email protected]> AuthorDate: Wed Nov 30 13:25:47 2022 +0000 fix issue where validation equates false with unset, failing required check --- .../app/components/providers/blueprint-service.provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js index 60c560ff..5319de8b 100644 --- a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js +++ b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js @@ -478,12 +478,12 @@ function BlueprintService($log, $q, $sce, paletteApi, iconGenerator, dslService, switch (key) { case 'Predicates.notNull()': case 'Predicates.notNull': - if ((!isSet() && !hasDefault) || val()==null) { + if ((!isSet() && !hasDefault) || val()===null) { message = `<samp>${config.name}</samp> is required`; } break; case 'required': - if ((!isSet() && !hasDefault) || val()==null || val()=='') { + if ((!isSet() && !hasDefault) || val()===null || val()==='') { message = `<samp>${config.name}</samp> is required`; } break;
