Skip to content

Commit

Permalink
fix(ui): Fix event-flow hidden nodes (#5013)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec committed Feb 3, 2021
1 parent 1b77ec8 commit 342caef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/src/app/shared/components/graph/graph-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ export const GraphPanel = (props: Props) => {
const visible = (id: Node) => {
const label = props.graph.nodes.get(id);
return (
nodeGenres[label.genre] &&
(!nodeClassNames || Object.entries(nodeClassNames).find(([className, checked]) => checked && (label.classNames || '').split(' ').includes(className))) &&
(!nodeTags || Object.entries(nodeTags).find(([tag, checked]) => !label.tags || (checked && label.tags.has(tag)))) &&
props.graph.nodes.get(id).label.includes(nodeSearchKeyword)
(nodeGenres[label.genre] &&
(!nodeClassNames || Object.entries(nodeClassNames).find(([className, checked]) => checked && (label.classNames || '').split(' ').includes(className))) &&
(!nodeTags || Object.entries(nodeTags).find(([tag, checked]) => !label.tags || (checked && label.tags.has(tag)))) &&
!nodeSearchKeyword) ||
label.label.includes(nodeSearchKeyword)
);
};

Expand Down

0 comments on commit 342caef

Please sign in to comment.