Skip to content

Commit

Permalink
hide empty events button and minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Jun 26, 2020
1 parent 7440eea commit 69b2353
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const Resolver = React.memo(function Resolver({
projectionMatrix={projectionMatrix}
/>
))}
{[...processNodePositions].map(([processEvent, position], index) => {
{[...processNodePositions].map(([processEvent, position]) => {
const adjacentNodeMap = processToAdjacencyMap.get(processEvent);
const processEntityId = entityId(processEvent);
if (!adjacentNodeMap) {
Expand All @@ -145,7 +145,7 @@ export const Resolver = React.memo(function Resolver({
}
return (
<ProcessEventDot
key={index}
key={processEntityId}
position={position}
projectionMatrix={projectionMatrix}
event={processEvent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,16 @@ const ProcessEventDotComponents = React.memo(
}}
>
<EuiFlexItem grow={false} className="related-dropdown">
<NodeSubMenu
count={grandTotal}
buttonBorderColor={labelButtonFill}
buttonFill={colorMap.resolverBackground}
menuAction={handleRelatedEventRequest}
menuTitle={subMenuAssets.relatedEvents.title}
optionsWithActions={relatedEventStatusOrOptions}
/>
{grandTotal > 0 && (
<NodeSubMenu
count={grandTotal}
buttonBorderColor={labelButtonFill}
buttonFill={colorMap.resolverBackground}
menuAction={handleRelatedEventRequest}
menuTitle={subMenuAssets.relatedEvents.title}
optionsWithActions={relatedEventStatusOrOptions}
/>
)}
</EuiFlexItem>
<EuiFlexItem grow={false}>
<NodeSubMenu
Expand Down

0 comments on commit 69b2353

Please sign in to comment.