diff --git a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts index aaf6dc17..4caa34ef 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts @@ -711,11 +711,9 @@ export class TopBarComponent implements OnInit, OnDestroy { id: 'IntegratedSearchDialog' }); - if (!!result) { + if (!!result && !!result.clear) { this.integratedIsShowOpenIcon = false; - if (!!result.clear) { - this.integratedSearchWord = ''; - } + this.integratedSearchWord = ''; } }, interval); }