From 97d78828e86277c27a6cd4d66c97e367dfc64538 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Fri, 14 Jul 2023 15:16:15 +0100 Subject: Fix error displaying node filters Signed-off-by: MichaelMorris Issue-ID: SDC-4572 Change-Id: Id206dd98bff2c929d875b55f6b7a8f1b75428623 --- catalog-ui/src/app/utils/filter-constraint-helper.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'catalog-ui/src') 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); } -- cgit 1.2.3-korg