Skip to content

Commit 1d31fc9

Browse files
authored
Sentiment click router fix (#1128)
1 parent 7f18f2e commit 1d31fc9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/src/modules/dashboard/components/activity/dashboard-activity-sentiment.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ import { mapGetters } from 'vuex';
9090
import { sentimentQuery } from '@/modules/dashboard/dashboard.cube';
9191
import AppCubeRender from '@/shared/cube/cube-render.vue';
9292
import AppLoading from '@/shared/loading/loading-placeholder.vue';
93+
import { filterQueryService } from '@/shared/modules/filters/services/filter-query.service';
9394
9495
export default {
9596
name: 'AppDashboardActivitySentiment',
@@ -170,7 +171,13 @@ export default {
170171
handleSentimentClick(sentiment) {
171172
this.$router.push({
172173
name: 'activity',
173-
query: { sentiment },
174+
query: filterQueryService().setQuery({
175+
sentiment: {
176+
value: [sentiment],
177+
include: true,
178+
},
179+
}),
180+
hash: '#activity',
174181
});
175182
},
176183
},

0 commit comments

Comments
 (0)