mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: error if decorateCooked is called without a helper for a post with a poll
This commit is contained in:
@ -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") || {};
|
||||
|
Reference in New Issue
Block a user