Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 91a97d7

Browse files
committed
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.
1 parent 511b102 commit 91a97d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/javascripts/discourse/components/admin-report-sentiment-analysis.gjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export default class AdminReportSentimentAnalysis extends Component {
219219
this.router.transitionTo(this.router.currentRoute.name, {
220220
queryParams: {
221221
...currentQueryParams,
222+
filters: JSON.parse(currentQueryParams.filters), // avoids a double escaping
222223
selectedChart: data.title,
223224
},
224225
});

0 commit comments

Comments
 (0)