I’m still seeing the following errors in google chromes console
Uncaught TypeError: Cannot read property 'map' of undefined
at _retort-972c371c6d8722041975c4d4723d73c31b2cd1f7ab4e5ef40da956eba16f7b7d.js:31
at _application-edf47146272ed83797d8302598e8d2811398547deb797477466306b2b1364d57.js:80552
at Array.map (<anonymous>)
at y (_application-edf47146272ed83797d8302598e8d2811398547deb797477466306b2b1364d57.js:80551)
at t.html (_application-edf47146272ed83797d8302598e8d2811398547deb797477466306b2b1364d57.js:76664)
at t.value (_application-edf47146272ed83797d8302598e8d2811398547deb797477466306b2b1364d57.js:81059)
at t.value (_application-edf47146272ed83797d8302598e8d2811398547deb797477466306b2b1364d57.js:80760)
at s (_vendor-a520d2facd37b23a6fce06beaf5feaa3034f761d5b4f37c89c4cecd3ead14192.js:20537)
at t.exports (_vendor-a520d2facd37b23a6fce06beaf5feaa3034f761d5b4f37c89c4cecd3ead14192.js:20524)
at e (_vendor-a520d2facd37b23a6fce06beaf5feaa3034f761d5b4f37c89c4cecd3ead14192.js:19893)
Seems to be related to this line…
api.decorateWidget('post-contents:after-cooked', function (helper) {
var postId = helper.getModel().id;
var post = _retort.default.postFor(postId);
if (_retort.default.disabledFor(postId)) {
return;
}
_retort.default.storeWidget(helper);
return post.retorts.map(function (_ref) { <<<<(RED X HERE)
var usernames = _ref.usernames,
emoji = _ref.emoji;
return helper.attach('retort-toggle', {
post: post,
usernames: usernames,
emoji: emoji
});
});
});
I’m a member on a group’s forum. To a post, I got more than two reactions of the same type. When I hover over it, it says “[user name 1], [user name 2] and 2 others reacted with [name of emoji]”.
I don’t know if this was proposed before, but in addition to the reaction emoji’s you might want to specify the alt-label that shows when hovering over the emoji, to better clarify its intent. This because emoji’s can still be interpreted rather randomly, or outright wrongly, based on how they are used in other places.