Skip to content

Commit

Permalink
> -> >= for query length
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Oct 31, 2017
1 parent 2eee007 commit 497188a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 497188a

Please sign in to comment.