FIX: error if decorateCooked is called without a helper for a post with a poll

This commit is contained in:
Neil Lalonde 2018-06-18 11:34:32 -04:00
parent 9963078dd1
commit 6e54af1091

View File

@ -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") || {};