FIX: prevents double escaping of filters (#1179)

---------

Co-authored-by: Keegan George <kgeorge13@gmail.com>
This commit is contained in:
Joffrey JAFFEUX 2025-03-10 22:17:24 +01:00 committed by GitHub
parent 511b10285d
commit 339251a371
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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