mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:31:43 +08:00
FIX: error if decorateCooked is called without a helper for a post with a poll
This commit is contained in:
parent
9963078dd1
commit
6e54af1091
|
@ -59,6 +59,10 @@ function initializePolls(api) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!helper) {
|
||||
return;
|
||||
}
|
||||
|
||||
const post = helper.getModel();
|
||||
api.preventCloak(post.id);
|
||||
const votes = post.get("polls_votes") || {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user