mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Previous polls are being removed when adding a poll in a new post.
This commit is contained in:
parent
2f14a81fa4
commit
35337cd687
@ -75,7 +75,6 @@ function initializePolls(api) {
|
|||||||
const polls = post.get("pollsObject");
|
const polls = post.get("pollsObject");
|
||||||
if (!polls) { return; }
|
if (!polls) { return; }
|
||||||
|
|
||||||
cleanUpPollViews();
|
|
||||||
const postPollViews = {};
|
const postPollViews = {};
|
||||||
|
|
||||||
$polls.each((idx, pollElem) => {
|
$polls.each((idx, pollElem) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user