From 302c525546650b71ad699903d98090f8cb23f068 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 10 Mar 2022 12:19:18 +0000 Subject: Fix cannot set node filter cap using get_property Change-Id: I92fd4016b19e03e22622cf6e476f17b49e3d6a47 Issue-ID: SDC-3904 Signed-off-by: MichaelMorris --- .../capabilities-filter-properties-editor.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'catalog-ui/src/app') diff --git a/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts b/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts index 3781a5163d..7e3bc69835 100644 --- a/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts +++ b/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts @@ -137,7 +137,7 @@ export class CapabilitiesFilterPropertiesEditorComponent { if (!this.currentRule.sourceName && this.currentRule.sourceType === this.SOURCE_TYPES.STATIC.value) { this.currentRule.sourceName = this.SOURCE_TYPES.STATIC.value; } - if (!this.input.componentInstanceCapabilitiesMap) { + if (this.input.componentInstanceCapabilitiesMap) { this.selectedCapabilitiesPropertyObject = Array.from(this.input.componentInstanceCapabilitiesMap .get(this.currentRule.capabilityName)) .find(property => property.name == this.currentRule.servicePropertyName); @@ -176,8 +176,8 @@ export class CapabilitiesFilterPropertiesEditorComponent { this.filterOptionsByType(); } - onServicePropertyChanged() { - this.updateOperatorTypesList(); + onServicePropertyChanged() { + this.syncRuleData(); this.filterOptionsByType(); this.currentRule.value = ''; } -- cgit 1.2.3-korg