Skip to content

Commit

Permalink
NAS-131461: Listen for stats when have apps
Browse files Browse the repository at this point in the history
(cherry picked from commit ce29ef8)
  • Loading branch information
denysbutenko authored and bugclerk committed Oct 8, 2024
1 parent 2745be5 commit 823bf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/apps/store/installed-apps-store.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export class InstalledAppsStore extends ComponentStore<InstalledAppsState> imple
withLatestFrom(this.dockerStore.isDockerStarted$),
filter(([isLoading, isDockerStarted]) => !isLoading && isDockerStarted !== null),
switchMap(([, isDockerStarted]) => {
this.appsStats.subscribeToUpdates();
this.subscribeToInstalledAppsUpdates();

if (!isDockerStarted) {
Expand All @@ -164,6 +163,7 @@ export class InstalledAppsStore extends ComponentStore<InstalledAppsState> imple

return this.appsService.getAllApps().pipe(
tap((installedApps) => {
this.appsStats.subscribeToUpdates();
this.patchState({
installedApps: [...installedApps],
});
Expand Down

0 comments on commit 823bf66

Please sign in to comment.