Merge pull request #7873 from vvlladd28/bug/search-field/null-value
Fixed when deleting a value in the search field time shows null value
This commit is contained in:
commit
63f83e2f06
@ -59,7 +59,7 @@ import { AddEntityDialogData, EntityAction } from '@home/models/entity/entity-co
|
|||||||
import { calculateIntervalStartEndTime, HistoryWindowType, Timewindow } from '@shared/models/time/time.models';
|
import { calculateIntervalStartEndTime, HistoryWindowType, Timewindow } from '@shared/models/time/time.models';
|
||||||
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
||||||
import { TbAnchorComponent } from '@shared/components/tb-anchor.component';
|
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 { HasUUID } from '@shared/models/id/has-uuid';
|
||||||
import { ResizeObserver } from '@juggle/resize-observer';
|
import { ResizeObserver } from '@juggle/resize-observer';
|
||||||
import { hidePageSizePixelValue } from '@shared/models/constants';
|
import { hidePageSizePixelValue } from '@shared/models/constants';
|
||||||
@ -282,7 +282,7 @@ export class EntitiesTableComponent extends PageComponent implements IEntitiesTa
|
|||||||
distinctUntilChanged(),
|
distinctUntilChanged(),
|
||||||
tap(() => {
|
tap(() => {
|
||||||
const queryParams: PageQueryParam = {
|
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) {
|
if (this.displayPagination) {
|
||||||
this.paginator.pageIndex = 0;
|
this.paginator.pageIndex = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user