Skip to content

Commit

Permalink
PE-207: filter visible actions rather than comment out type.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Feb 1, 2024
1 parent 635a566 commit 941335d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/flow/node/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const getVisibleActions = (renderNode: RenderNode): Action[] => {
return renderNode.node.actions.filter((action: Action) => action.type !== Types.set_run_result);
}

return renderNode.node.actions;
//return renderNode.node.actions;
//PE-207: hide ticket feature
return renderNode.node.actions.filter((action: Action) => action.type !== Types.open_ticket);
};

export const filterIssuesForAction = (
Expand Down
2 changes: 1 addition & 1 deletion src/config/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export enum Types {
call_classifier = 'call_classifier',
call_resthook = 'call_resthook',
call_webhook = 'call_webhook',
//open_ticket = 'open_ticket', PE-207: hide ticket feature
open_ticket = 'open_ticket',
send_msg = 'send_msg',
send_email = 'send_email',
send_broadcast = 'send_broadcast',
Expand Down

0 comments on commit 941335d

Please sign in to comment.