mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 15:22:47 +00:00
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:
parent
511b10285d
commit
91a97d75da
@ -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,
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user