Skip to content

Commit

Permalink
PE-207: visible action flow filter needs to affect both IF branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Feb 2, 2024
1 parent 41d27ec commit 32f2844
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/flow/node/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ export const getResultName = (node: FlowNode) => {
// };
//PE-207: hide ticket feature
export const getVisibleActions = (renderNode: RenderNode): Action[] => {
let actionList = renderNode.node.actions.filter((action: Action) => action.type !== Types.open_ticket);
let actionList = renderNode.node.actions.filter(
(action: Action) => action.type !== Types.open_ticket
);
// subflow nodes hide their set run results
if ( getType(renderNode) === Types.split_by_subflow ) {
if (getType(renderNode) === Types.split_by_subflow) {
actionList = actionList.filter((action: Action) => action.type !== Types.set_run_result);
}
return actionList;
}
};

export const filterIssuesForAction = (
nodeUUID: string,
Expand Down

0 comments on commit 32f2844

Please sign in to comment.