diff --git a/libs/upd/views/pages/src/lib/pages-details/+state/pages-details.facade.ts b/libs/upd/views/pages/src/lib/pages-details/+state/pages-details.facade.ts index fdb3bd523..db6d642dd 100644 --- a/libs/upd/views/pages/src/lib/pages-details/+state/pages-details.facade.ts +++ b/libs/upd/views/pages/src/lib/pages-details/+state/pages-details.facade.ts @@ -147,7 +147,7 @@ export class PagesDetailsFacade { ); mostFrequentWordsOnPage$ = this.latestReadability$.pipe( - map((readability) => readability?.word_counts) + map((readability) => readability?.word_counts || []) ); wordCount$ = this.latestReadability$.pipe(