Skip to content

Commit

Permalink
Fix flow
Browse files Browse the repository at this point in the history
  • Loading branch information
emeeks committed Feb 13, 2019
1 parent d08d0dd commit ddac70c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/svg/frameFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ type ORFrameConnectionRendererTypes = {
projection: ProjectionTypes,
canvasRender: Function,
canvasDrawing: Array<Object>,
baseMarkProps: Object
baseMarkProps: Object,
pieceType: Object
}

type ORFrameSummaryRendererTypes = {
Expand Down Expand Up @@ -408,9 +409,11 @@ export function orFrameConnectionRenderer({
radarHash.set(piece, [piece])
}
const thisRadar = radarHash.get(piece)
thisRadar.push(matchingPiece)
radarHash.set(matchingPiece, thisRadar)
radarHash.delete(piece)
if (thisRadar) {
thisRadar.push(matchingPiece)
radarHash.set(matchingPiece, thisRadar)
radarHash.delete(piece)
}
} else {
const { xy } = piece
const { xy: mxy } = matchingPiece
Expand Down

0 comments on commit ddac70c

Please sign in to comment.