This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 491469c Added condition for only undefined fields to be shown empty
new aca8301 Merge pull request #184 from iuliana/master
491469c is described below
commit 491469cd3331a3bb1195d41ef61ca7b5f5cd8582
Author: iuliana <[email protected]>
AuthorDate: Thu Jan 7 11:55:07 2021 +0000
Added condition for only undefined fields to be shown empty
---
ui-modules/utils/quick-launch/quick-launch.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-modules/utils/quick-launch/quick-launch.js
b/ui-modules/utils/quick-launch/quick-launch.js
index a114aae..2f2d675 100644
--- a/ui-modules/utils/quick-launch/quick-launch.js
+++ b/ui-modules/utils/quick-launch/quick-launch.js
@@ -94,7 +94,7 @@ export function quickLaunchDirective() {
$scope.entityToDeploy[BROOKLYN_CONFIG] = {};
}
- $scope.entityToDeploy[BROOKLYN_CONFIG][config.name] =
config.defaultValue || null;
+ $scope.entityToDeploy[BROOKLYN_CONFIG][config.name] =
config.defaultValue === "undefined" ? null : config.defaultValue;
}
return result;
}, {});