Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamorony committed Jul 11, 2023
1 parent 4d14079 commit 0a3f09c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/articles/data-access/articles.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class ArticlesService {

constructor() {
// reducers
this.articlesForPage$.pipe(takeUntilDestroyed()).subscribe((articles) =>
this.articlesForPage$.pipe(takeUntilDestroyed()).subscribe((articles) =>
this.state.update((state) => ({
...state,
articles,
Expand All @@ -78,10 +78,14 @@ export class ArticlesService {
this.currentPage$
.pipe(takeUntilDestroyed())
.subscribe((currentPage) =>
this.state.update((state) => ({ ...state, currentPage, status: "loading", articles: [] }))
this.state.update((state) => ({
...state,
currentPage,
status: "loading",
articles: [],
}))
);


this.filter$.pipe(takeUntilDestroyed()).subscribe((filter) =>
this.state.update((state) => ({
...state,
Expand Down

0 comments on commit 0a3f09c

Please sign in to comment.