Skip to content

Commit 94d3b7e

Browse files
authored
Fix CategorySearchComponent displays console error on close (#297)
1 parent bbb5807 commit 94d3b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devui/category-search/category-search.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ export class CategorySearchComponent implements OnChanges, OnDestroy, AfterViewI
752752
this.clearCurrentSelectTagFromSearch();
753753
this.currentOpenDropdown = undefined;
754754
this.showNoDataTips = false;
755-
if (tag.type === 'treeSelect') {
755+
if (tag?.type === 'treeSelect') {
756756
setTimeout(() => {
757757
this.treeSearch('');
758758
this.treeResetFlag = false;

0 commit comments

Comments
 (0)