From 4af303d0f2e5c83dc9d880af4cd45202cefa43bf Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Mon, 5 Feb 2024 16:18:14 +0100 Subject: [PATCH] 111638: Use hasValue instead of nullCheck --- src/app/process-page/overview/process-overview.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/process-page/overview/process-overview.service.ts b/src/app/process-page/overview/process-overview.service.ts index 1d71e0d1fc..73c7c1529f 100644 --- a/src/app/process-page/overview/process-overview.service.ts +++ b/src/app/process-page/overview/process-overview.service.ts @@ -10,6 +10,7 @@ import { ProcessStatus } from '../processes/process-status.model'; import { DatePipe } from '@angular/common'; import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model'; import { SortOptions, SortDirection } from '../../core/cache/models/sort-options.model'; +import { hasValue } from '../../shared/empty.util'; /** * The sortable fields for processes @@ -60,7 +61,7 @@ export class ProcessOverviewService { elementsPerPage: 5, }, findListOptions); - if (autoRefreshingIntervalInMs !== null && autoRefreshingIntervalInMs > 0) { + if (hasValue(autoRefreshingIntervalInMs) && autoRefreshingIntervalInMs > 0) { return this.processDataService.autoRefreshingSearchBy('byProperty', options, autoRefreshingIntervalInMs); } else { return this.processDataService.searchBy('byProperty', options);