FIX: editing a post with a poll breaks sometimes
This commit is contained in:
parent
c23aeddccf
commit
635b31af7b
|
@ -48,7 +48,7 @@ export default {
|
|||
pollView = createPollView(container, post, polls[pollName], votes[pollName]);
|
||||
|
||||
$poll.replaceWith($div);
|
||||
pollView.renderer.replaceIn(pollView, $div[0]);
|
||||
Em.run.next(_ => pollView.renderer.replaceIn(pollView, $div[0]));
|
||||
pollViews[pollName] = pollView;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue