From 9f1dd954d7023c6a121659d1299fb83fc117a66d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 11 Nov 2018 15:29:45 +0300 Subject: Fix qs.parse calls --- vnext/src/components/Post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext/src/components/Post.js') diff --git a/vnext/src/components/Post.js b/vnext/src/components/Post.js index 555ad9af..ce64018a 100644 --- a/vnext/src/components/Post.js +++ b/vnext/src/components/Post.js @@ -12,7 +12,7 @@ import { post } from '../api'; export default class Post extends React.Component { constructor(props) { super(props); - let params = qs.parse(window.location.search); + let params = qs.parse(window.location.search.substring(1)); this.state = { attach: '', body: params.body || '' -- cgit v1.2.3