From fc90192a686b57108b09715dd51871df23520cab Mon Sep 17 00:00:00 2001 From: Adrian Fahrbach Date: Thu, 5 Sep 2024 21:02:45 +0200 Subject: [PATCH] docs: fix wrong fallback example in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 85c87b6..7e4e464 100755 --- a/README.md +++ b/README.md @@ -225,10 +225,10 @@ Check the available [apiOptions](https://www.storyblok.com/docs/api/content-deli { resolveRelations: ["Article.author"], resolveLinks: "url" } // Bridge Options ); - if (story.value.status) { + if (!story.value) { throw createError({ - statusCode: story.value.status, - statusMessage: story.value.response + statusCode: 404, + message: 'not found', }); }