FriendsOfFlarum / gamification

Add upvotes, downvotes, and ranks to your Flarum Community
https://discuss.flarum.org/d/20671-friendsofflarum-gamification
MIT License
36 stars 17 forks source link

Unable to vote from the discussion list with the alternative layout #77

Closed iamdarkle closed 1 year ago

iamdarkle commented 2 years ago

Bug Report

In the new installations I have done in different environments (Windows-Linux) when I enable the alternative layout to show the voting buttons from the discussion list I am unable to vote, when I click on the voting button from the discussion list I get the following console error:

saveVote.jss:4 Uncaught TypeError: t.discussion is not a function
    at Z (saveVote.jss:4:67)
    at f (addAlternateLayout.jss:53:45)
    at HTMLButtonElement.onclick (addAlternateLayout.jss:62:26)
    at L.handleEvent (render.jss:888:55)
Z   @   saveVote.jss:4
f   @   addAlternateLayout.jss:53
onclick @   addAlternateLayout.jss:62
L.handleEvent   @   render.jss:888

I don't think it is a compatibility issue with an extension as these installations are practically at the minimum.

Here I talked a bit about it too (https://discuss.flarum.org/d/20671-friendsofflarum-gamification/608).

iamdarkle commented 1 year ago

The project where this happened is no longer active so I won't be able to provide more information, however since no one else has reported this, I don't think it was a gamification issue.