diff --git a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts index 4b2be5f2f..031a23b06 100644 --- a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts @@ -173,13 +173,13 @@ export class DictionaryManagerComponent implements OnChanges { revert() { this.editor?.revert(); + this.searchText = ''; this.searchChanged(''); } @Debounce() searchChanged(text: string) { - this.searchText = text.toLowerCase(); - this.findMatches = this._getMatches(this.searchText); + this.findMatches = this._getMatches(text.toLowerCase()); this._applySearchDecorations(); this.currentMatch = 0;