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

Commit 339251a

Browse files
FIX: prevents double escaping of filters (#1179)
--------- Co-authored-by: Keegan George <[email protected]>
1 parent 511b102 commit 339251a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 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
});
@@ -267,6 +268,7 @@ export default class AdminReportSentimentAnalysis extends Component {
267268
this.router.transitionTo(this.router.currentRoute.name, {
268269
queryParams: {
269270
...currentQueryParams,
271+
filters: JSON.parse(currentQueryParams.filters), // avoids a double escaping
270272
selectedChart: null,
271273
},
272274
});

0 commit comments

Comments
 (0)