Browse Source
Merge pull request #7873 from vvlladd28/bug/search-field/null-value
Fixed when deleting a value in the search field time shows null value
pull/8010/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/entity/entities-table.component.ts
|
|
|
@ -59,7 +59,7 @@ import { AddEntityDialogData, EntityAction } from '@home/models/entity/entity-co |
|
|
|
import { calculateIntervalStartEndTime, HistoryWindowType, Timewindow } from '@shared/models/time/time.models'; |
|
|
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; |
|
|
|
import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; |
|
|
|
import { isDefined, isEmptyStr, isEqual, isUndefined } from '@core/utils'; |
|
|
|
import { isDefined, isEmptyStr, isEqual, isString, isUndefined } from '@core/utils'; |
|
|
|
import { HasUUID } from '@shared/models/id/has-uuid'; |
|
|
|
import { ResizeObserver } from '@juggle/resize-observer'; |
|
|
|
import { hidePageSizePixelValue } from '@shared/models/constants'; |
|
|
|
@ -282,7 +282,7 @@ export class EntitiesTableComponent extends PageComponent implements IEntitiesTa |
|
|
|
distinctUntilChanged(), |
|
|
|
tap(() => { |
|
|
|
const queryParams: PageQueryParam = { |
|
|
|
textSearch: encodeURI(this.pageLink.textSearch) || null |
|
|
|
textSearch: isString(this.pageLink.textSearch) && this.pageLink.textSearch !== '' ? encodeURI(this.pageLink.textSearch) : null |
|
|
|
}; |
|
|
|
if (this.displayPagination) { |
|
|
|
this.paginator.pageIndex = 0; |
|
|
|
|