diff --git a/src/app/Shared/Services/Api.service.tsx b/src/app/Shared/Services/Api.service.tsx index 199f0939a..c62f10c0d 100644 --- a/src/app/Shared/Services/Api.service.tsx +++ b/src/app/Shared/Services/Api.service.tsx @@ -17,7 +17,18 @@ import { LayoutTemplate, SerialLayoutTemplate } from '@app/Dashboard/types'; import { createBlobURL } from '@app/utils/utils'; import { ValidatedOptions } from '@patternfly/react-core'; -import { EMPTY, forkJoin, from, Observable, ObservableInput, of, ReplaySubject, shareReplay, throwError } from 'rxjs'; +import { + BehaviorSubject, + EMPTY, + forkJoin, + from, + Observable, + ObservableInput, + of, + ReplaySubject, + shareReplay, + throwError, +} from 'rxjs'; import { fromFetch } from 'rxjs/fetch'; import { catchError, concatMap, filter, first, map, mergeMap, tap } from 'rxjs/operators'; import { @@ -69,7 +80,7 @@ import { NotificationService } from './Notifications.service'; import { TargetService } from './Target.service'; export class ApiService { - private readonly archiveEnabled = new ReplaySubject(true); + private readonly archiveEnabled = new BehaviorSubject(true); private readonly cryostatVersionSubject = new ReplaySubject(1); private readonly grafanaDatasourceUrlSubject = new ReplaySubject(1); private readonly grafanaDashboardUrlSubject = new ReplaySubject(1);