Skip to content

Commit

Permalink
fix(triggers): hide triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Jun 7, 2023
1 parent de79c0a commit afce169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webchat/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class RootStore {

@computed
get currentMessages(): Message[] {
return this.currentConversation?.messages || []
return (this.currentConversation?.messages || []).filter((x) => x.payload?.type !== 'trigger')
}

@computed
Expand Down

0 comments on commit afce169

Please sign in to comment.