Skip to content

Commit

Permalink
Merge pull request #21 from zarathustra323/hotfix-2.3
Browse files Browse the repository at this point in the history
 Ensure preview value is sent from the req query
  • Loading branch information
zarathustra323 authored Aug 14, 2018
2 parents 4a2fc4d + e729a7c commit 71e80ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 71e80ae

Please sign in to comment.