diff options
author | Tom Willemse | 2013-07-13 19:19:36 +0200 |
---|---|---|
committer | Tom Willemse | 2013-07-13 19:19:36 +0200 |
commit | 4b910d426fb17b80b3341915f7b77c0cb5311bd2 (patch) | |
tree | e6d954f20281ae88fd9d8929a48b38393d0705a4 | |
parent | fae20212e660e01b78c1f471777215ada94b5fdc (diff) | |
download | scrumli-4b910d426fb17b80b3341915f7b77c0cb5311bd2.tar.gz scrumli-4b910d426fb17b80b3341915f7b77c0cb5311bd2.zip |
Clear table after fetch from server
Clears the table of stories when fetching a new list of stories. This
seems a bit drastic, but it ensures that the state icons are updated
as well (instead of just the titles).
-rw-r--r-- | static/js/main.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/main.js b/static/js/main.js index f19351c..0a40489 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -247,6 +247,7 @@ var StoryPage = React.createClass({ loadStoriesFromServer: function() { $.get(this.props.url) .done(function(data) { + this.setState({data: []}); this.setState({data: data}); }.bind(this)); }, |