Skip to content

Commit

Permalink
fix: Fix results data on flow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-morais committed Mar 27, 2024
1 parent eb8cad2 commit acedaaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/layouts/ChatsLayout/components/FlowsTrigger/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export default {
this.isContactsLoading = true;
try {
const response = await FlowsAPI.getContacts(this.searchUrn);
this.listOfContacts = this.listOfContacts.concat(response.data || []);
this.listOfContacts = this.listOfContacts.concat(response.data.results || []);
this.hasNext = response.next;
this.listOfContacts.sort((a, b) => a.name?.localeCompare(b.name));

Expand Down
2 changes: 0 additions & 2 deletions src/services/api/resources/flows/flowsTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export default {
results: response.data.results,
};

console.log(resultsResponse);

return { data: resultsResponse, status: 'success' };
} catch (error) {
if (axios.isCancel(error)) {
Expand Down

0 comments on commit acedaaf

Please sign in to comment.