From 740bb39d7abff014c79b604bca451a43fc16f21c Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Fri, 13 Dec 2024 07:25:50 -0800
Subject: [PATCH] FIx: let the backend deal with spaces for global search
(#8483)
---
src-ui/messages.xlf | 10 +++++-----
.../app-frame/global-search/global-search.component.ts | 3 +--
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index f181c53c7..a4dc5cc4f 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -1050,7 +1050,7 @@
src/app/components/app-frame/global-search/global-search.component.ts
- 104
+ 103
@@ -3067,22 +3067,22 @@
Successfully updated object.
src/app/components/app-frame/global-search/global-search.component.ts
- 193
+ 192
src/app/components/app-frame/global-search/global-search.component.ts
- 231
+ 230
Error occurred saving object.
src/app/components/app-frame/global-search/global-search.component.ts
- 196
+ 195
src/app/components/app-frame/global-search/global-search.component.ts
- 234
+ 233
diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts
index 682d4e81b..77e116c84 100644
--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts
+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts
@@ -8,7 +8,7 @@ import {
} from '@angular/core'
import { Router } from '@angular/router'
import { NgbDropdown, NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'
-import { Subject, debounceTime, distinctUntilChanged, filter, map } from 'rxjs'
+import { Subject, debounceTime, distinctUntilChanged, filter } from 'rxjs'
import { DataType } from 'src/app/data/datatype'
import {
FILTER_FULLTEXT_QUERY,
@@ -89,7 +89,6 @@ export class GlobalSearchComponent implements OnInit {
this.queryDebounce
.pipe(
debounceTime(400),
- map((query) => query?.trim()),
filter((query) => !query?.length || query?.length > 2),
distinctUntilChanged()
)