Fixes API call failing after opening the saved filter (#3932)
This commit is contained in:
parent
2a07eae69f
commit
d891c1e7b5
2 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ export default {
|
||||||
if (this.$route.name !== 'home') {
|
if (this.$route.name !== 'home') {
|
||||||
this.$router.push({ name: 'home' });
|
this.$router.push({ name: 'home' });
|
||||||
}
|
}
|
||||||
this.foldersQuery = { payload: payload };
|
this.foldersQuery = filterQueryGenerator(payload);
|
||||||
this.$store.dispatch('conversationPage/reset');
|
this.$store.dispatch('conversationPage/reset');
|
||||||
this.$store.dispatch('emptyAllConversations');
|
this.$store.dispatch('emptyAllConversations');
|
||||||
this.fetchFilteredConversations(payload);
|
this.fetchFilteredConversations(payload);
|
||||||
|
|
|
@ -340,7 +340,7 @@ export default {
|
||||||
},
|
},
|
||||||
onApplyFilter(payload) {
|
onApplyFilter(payload) {
|
||||||
this.closeContactInfoPanel();
|
this.closeContactInfoPanel();
|
||||||
this.segmentsQuery = { payload };
|
this.segmentsQuery = filterQueryGenerator(payload);
|
||||||
this.$store.dispatch('contacts/filter', {
|
this.$store.dispatch('contacts/filter', {
|
||||||
queryPayload: filterQueryGenerator(payload),
|
queryPayload: filterQueryGenerator(payload),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue