Fix cache load race condition bug

master
Tanner Collin 4 years ago
parent 72f1043952
commit 02b73a8b14
  1. 4
      webclient/src/Article.js

@ -24,7 +24,9 @@ class Article extends React.Component {
localForage.getItem(id) localForage.getItem(id)
.then( .then(
(value) => { (value) => {
this.setState({ story: value }); if (value) {
this.setState({ story: value });
}
} }
); );

Loading…
Cancel
Save