Skip to content

Commit

Permalink
NAS-123306: Returning observable instead of array (#8541)
Browse files Browse the repository at this point in the history
(cherry picked from commit d0b1ce5)

Co-authored-by: RehanY147 <[email protected]>
  • Loading branch information
bugclerk and RehanY147 authored Aug 7, 2023
1 parent a11051b commit 6a1aaee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { ComponentStore } from '@ngrx/component-store';
import _ from 'lodash';
import {
Observable, filter, map, switchMap, tap,
Observable, filter, map, of, switchMap, tap,
} from 'rxjs';
import { IncomingApiMessageType } from 'app/enums/api-message-type.enum';
import { ApiEvent } from 'app/interfaces/api-message.interface';
Expand Down Expand Up @@ -67,7 +67,7 @@ export class DashboardStorageStore extends ComponentStore<DashboardStorageState>
if (pools?.length) {
return this.loadVolumeData();
}
return pools;
return of(pools);
}),
);
}
Expand Down

0 comments on commit 6a1aaee

Please sign in to comment.