Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Commit

Permalink
fixed bug with mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Sep 15, 2016
1 parent ebb41ac commit 8bcddef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -22,18 +22,18 @@
},
"homepage": "https://github.com/peterbe/react-buggy",
"devDependencies": {
"babel-core": "6.13.2",
"babel-core": "6.14.0",
"babel-eslint": "6.1.2",
"babel-loader": "6.2.5",
"babel-preset-es2015": "6.13.2",
"babel-preset-es2015": "6.14.0",
"babel-preset-react": "6.11.1",
"babel-preset-stage-0": "6.5.0",
"eslint": "3.3.1",
"eslint": "3.4.0",
"eslint-plugin-react": "6.1.2",
"react-addons-perf": "15.3.1",
"react-hot-loader": "3.0.0-beta.2",
"webpack": "1.13.2",
"webpack-dev-server": "1.14.1"
"webpack-dev-server": "1.15.0"
},
"dependencies": {
"elasticlunr": "0.9.0",
Expand Down
7 changes: 4 additions & 3 deletions src/App.js
Expand Up @@ -335,12 +335,13 @@ export default class App extends Component {
}
}
if (since) {
let copiedSince = new Date(since)
// GitHub uses the since= as >= meaning that it will always return
// something. Increment it by 1 second.
since.setSeconds(since.getSeconds() + 1);
since = since.toISOString()
copiedSince.setSeconds(copiedSince.getSeconds() + 1)
copiedSince = copiedSince.toISOString()
url += url.indexOf('?') > -1 ? '&' : '?'
url += `since=${since}`
url += `since=${copiedSince}`
}
console.log("Downloading issues from:", url);
return downloadIssues(url).then(() => {
Expand Down
4 changes: 1 addition & 3 deletions src/List.js
Expand Up @@ -253,7 +253,7 @@ export default class List extends Component {
<form className="pure-form" id="searchform"
onSubmit={(event) => this.submitSearchForm(event)}>
<input
type="text"
type="search"
ref="search"
className="pure-input-rounded"
onChange={(event) => this.search(event)}
Expand Down Expand Up @@ -428,8 +428,6 @@ class Issue extends Component {
terms={searchTerms}/>
}

console.log("Rendering issue ", issue.title);

return (
<div
className={className}
Expand Down
3 changes: 2 additions & 1 deletion static/css/extra.css
Expand Up @@ -210,9 +210,10 @@
#searchform {
margin: 5px;
}
#searchform input[type="text"] {
#searchform input[type="search"] {
width: 285px;
}

button.has-filters {
font-weight: bold;
}
Expand Down

0 comments on commit 8bcddef

Please sign in to comment.