aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/ClientApp/src/app/data')
-rw-r--r--Timeline/ClientApp/src/app/data/timeline.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/data/timeline.ts b/Timeline/ClientApp/src/app/data/timeline.ts
index 52022562..842d4bee 100644
--- a/Timeline/ClientApp/src/app/data/timeline.ts
+++ b/Timeline/ClientApp/src/app/data/timeline.ts
@@ -371,6 +371,13 @@ export class TimelineService {
getPosts$(timelineName: string): Observable<TimelinePostsWithSyncState> {
return this._postsHub.getObservable(timelineName).pipe(
switchMap((state) => {
+ if (state.posts.length === 0) {
+ return of({
+ type: state.type,
+ posts: [],
+ });
+ }
+
return combineLatest([
combineLatest(
state.posts.map((post) => userInfoService.getUser$(post.author))