Browse Source

try not to route twice

pull/1/head
wes 7 years ago
parent
commit
7ccae96438
  1. 4
      src/scripts/post.tag

4
src/scripts/post.tag

@ -117,6 +117,10 @@ updatePost(postcontent) {
self.content = postcontent.content;
self.title = postcontent.title;
if (self.opts.state._id !== self._id) {
self.route(`/posts/${self._id}`);
}
self.opts.state._id = self._id;
self.opts.state.title = self.title;
self.opts.state.initial = self.content;

Loading…
Cancel
Save