Closed hackerESQ closed 2 weeks ago
Not sure if that's the right way to do that. But let me know if that works.
Hi @hackerESQ thanks for your contribution! This branch still has conflicts that must be resolved. I suggest that you git reset the branch back to the first commit you made and then force push to remote.
Related to v17development/flarum-support-feedback#14 which causes support page to break.
Changes proposed in this pull request: This change adds a conditional check to make sure the
user.ranks()
is actually loaded. If the rank is falsey, it does not try to add user rank to the PostUser view.Reviewers should focus on:
Screenshot This is how the support tickets page was breaking:
And here's the console log showing the
ranks()
trying toreverse()
which is not available since it's not an array:Confirmed
composer test
).Required changes: N/A