mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 19:12:15 +00:00
FIX: prevents double escaping of filters (#1179)
--------- Co-authored-by: Keegan George <kgeorge13@gmail.com>
This commit is contained in:
parent
511b10285d
commit
339251a371
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user