This is an automated email from the ASF dual-hosted git repository. alexantonenko pushed a commit to branch branch-2.7 in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push: new f313c5c AMBARI-25418 Cannot select any configuration in logsearch configuration editor (santal) new 74af566 Merge pull request #3130 from sziszo/AMBARI-25418-branch-2.7 f313c5c is described below commit f313c5c9028e88cea475853e4ec4c7be903d2747 Author: Szilard Antal <san...@cloudera.com> AuthorDate: Tue Nov 19 14:19:14 2019 +0100 AMBARI-25418 Cannot select any configuration in logsearch configuration editor (santal) --- .../shared/components/filter-dropdown/filter-dropdown.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/filter-dropdown/filter-dropdown.component.ts b/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/filter-dropdown/filter-dropdown.component.ts index 669fcc9..774136a 100644 --- a/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/filter-dropdown/filter-dropdown.component.ts +++ b/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/filter-dropdown/filter-dropdown.component.ts @@ -41,10 +41,10 @@ export class FilterDropdownComponent extends DropdownButtonComponent implements } set selection(items: ListItem[]) { - this.selectedItems = items; + this.selectedItems = Array.isArray(items) ? items : [items]; if (this.isMultipleChoice && this.options) { this.options.forEach((option: ListItem): void => { - const selectionItem = items.find((item: ListItem): boolean => this.utils.isEqual(item.value, option.value)); + const selectionItem = this.selectedItems.find((item: ListItem): boolean => this.utils.isEqual(item.value, option.value)); option.isChecked = Boolean(selectionItem); }); }