Skip to content

Commit

Permalink
Fix missing piece bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emeeks committed Apr 9, 2019
1 parent 37e084f commit aff9d61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/annotationRules/orframeRules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ export const findIDPiece = (pieceIDAccessor, oColumn, d) => {
r => r.rName === pieceID || pieceIDAccessor(r.data) === pieceID
)

if (pieceID === "" || basePieces === false || basePieces.length !== 1)
if (
pieceID === "" ||
basePieces === undefined ||
basePieces === false ||
basePieces.length !== 1
)
return d

const basePiece = basePieces[0]
Expand Down

0 comments on commit aff9d61

Please sign in to comment.