diff --git a/website/src/fixtures/posts.ts b/website/src/fixtures/posts.ts index 4ad6e09607e8..8409adbe0e31 100644 --- a/website/src/fixtures/posts.ts +++ b/website/src/fixtures/posts.ts @@ -150,7 +150,15 @@ export const postFixtures = [ (post as any).author = user; return user; }) - .catch(e => {}) + .catch(e => { + // fallback in case of failure + const user = { + id: post.author, + name: 'Leanne Graham', + }; + (post as any).author = user; + return user; + }) : Promise.resolve({}), ), );