From b441728fc35173cc854ae6334d777039ed1328f2 Mon Sep 17 00:00:00 2001 From: dominikiwanekhyland <141320833+dominikiwanekhyland@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:08:33 +0200 Subject: [PATCH] Refactor AppEffects (#4079) --- projects/aca-content/src/lib/store/effects/app.effects.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/aca-content/src/lib/store/effects/app.effects.ts b/projects/aca-content/src/lib/store/effects/app.effects.ts index 9bd01cd066..ba4ee9dd7d 100644 --- a/projects/aca-content/src/lib/store/effects/app.effects.ts +++ b/projects/aca-content/src/lib/store/effects/app.effects.ts @@ -22,15 +22,16 @@ * from Hyland Software. If not, see . */ -import { Actions, ofType, createEffect } from '@ngrx/effects'; -import { Injectable } from '@angular/core'; +import { Actions, createEffect, ofType } from '@ngrx/effects'; +import { inject, Injectable } from '@angular/core'; import { map } from 'rxjs/operators'; import { AppActionTypes, ReloadDocumentListAction, ResetSelectionAction } from '@alfresco/aca-shared/store'; import { DocumentListService } from '@alfresco/adf-content-services'; @Injectable() export class AppEffects { - constructor(private actions$: Actions, private documentListService: DocumentListService) {} + actions$ = inject(Actions); + documentListService = inject(DocumentListService); reload = createEffect( () =>