From 497188aa1a0e39f2af0b8cc5b076904f5a57c074 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 30 Oct 2017 20:55:04 -0700 Subject: [PATCH] > -> >= for query length --- pages/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/editor.js b/pages/editor.js index ec7d50e..a3f9cdf 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -31,7 +31,7 @@ import { getState, saveState } from '../lib/util' const removeQueryString = str => { const qI = str.indexOf('?') - return qI > 0 ? str.substr(0, qI) : str + return qI >= 0 ? str.substr(0, qI) : str } class Editor extends React.Component {