From 5dfc3a8eb0d649882358961ff90dd191af584243 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Tue, 14 Aug 2018 11:39:53 -0500 Subject: [PATCH 1/2] Ensure preview value is sent from the req query --- src/pages/story.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/story.jsx b/src/pages/story.jsx index 65f9404..089fa0e 100644 --- a/src/pages/story.jsx +++ b/src/pages/story.jsx @@ -53,7 +53,7 @@ Story.getInitialProps = async ({ req, query }) => { let preview = false; if (req) { - preview = Boolean(req.query); + preview = Boolean(req.query.preview); } const { id, publisherId } = query; return { id, preview, publisherId }; From e729a7c6bd57a8922f97628317fca4e4ff286599 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Tue, 14 Aug 2018 11:42:06 -0500 Subject: [PATCH 2/2] Bump to 1.0.0-rc.2.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f8f4bb..46f1c53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fortnight-web", - "version": "1.0.0-rc.2.2", + "version": "1.0.0-rc.2.3", "main": "index.js", "author": "Jacob Bare ", "license": "MIT",