0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed analytics page feedback chart filter button links

no issue

Clicking the 'see members' button in the feedback chart tooltip went to a page with a hardcoded post id instead of the actual post id.
This commit is contained in:
Simon Backx 2022-11-10 10:38:09 +01:00
parent b74029697f
commit a5c4091620

View file

@ -94,8 +94,8 @@ export default class Analytics extends Component {
const values = [this.post.count.positive_feedback, this.post.count.negative_feedback];
const labels = ['More like this', 'Less like this'];
const links = [
{filterParam: '(feedback.post_id:6368b75db2faed03adaee6b7+feedback.score:1)'},
{filterParam: '(feedback.post_id:6368b75db2faed03adaee6b7+feedback.score:0)'}
{filterParam: '(feedback.post_id:' + this.post.id + '+feedback.score:1)'},
{filterParam: '(feedback.post_id:' + this.post.id + '+feedback.score:0)'}
];
const colors = ['#F080B2', '#8452f633'];
return {values, labels, links, colors};