summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-07-14 15:16:15 +0100
committerMichaelMorris <michael.morris@est.tech>2023-07-14 15:16:19 +0100
commit97d78828e86277c27a6cd4d66c97e367dfc64538 (patch)
tree49f6ad7b0a039a61b5f369b27ee0b73478d395df
parent8621aa29e84bebbd1210e7dcf95db1ed7e9368d2 (diff)
Fix error displaying node filters
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4572 Change-Id: Id206dd98bff2c929d875b55f6b7a8f1b75428623
-rw-r--r--catalog-ui/src/app/utils/filter-constraint-helper.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog-ui/src/app/utils/filter-constraint-helper.ts b/catalog-ui/src/app/utils/filter-constraint-helper.ts
index 2666bbfd81..6504a35acd 100644
--- a/catalog-ui/src/app/utils/filter-constraint-helper.ts
+++ b/catalog-ui/src/app/utils/filter-constraint-helper.ts
@@ -27,11 +27,9 @@ export class FilterConstraintHelper {
public static buildFilterConstraintLabel(constraint: FilterConstraint): string {
let value;
if (ToscaFunctionHelper.isValueToscaFunction(constraint.value)) {
- console.error(constraint.value);
const toscaFunction = ToscaFunctionHelper.convertObjectToToscaFunction(constraint.value);
if (toscaFunction) {
- value = toscaFunction.value;
- console.error(value);
+ value = toscaFunction.value === undefined || toscaFunction.value == null ? toscaFunction.buildValueString() : toscaFunction.value
} else {
value = JSON.stringify(constraint.value, null, 4);
}