FIX: prevents double escaping of filters

We were passing: `{"category": 4}` which was then escape by Ember, basically causing a double Json stringify and preventing code to work down the road.
This commit is contained in:
Joffrey JAFFEUX 2025-03-10 21:05:38 +01:00
parent 511b10285d
commit 91a97d75da

View File

@ -219,6 +219,7 @@ export default class AdminReportSentimentAnalysis extends Component {
this.router.transitionTo(this.router.currentRoute.name, {
queryParams: {
...currentQueryParams,
filters: JSON.parse(currentQueryParams.filters), // avoids a double escaping
selectedChart: data.title,
},
});