Skip to content

Commit aff9d61

Browse files
committed
Fix missing piece bug
1 parent 37e084f commit aff9d61

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/annotationRules/orframeRules.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,12 @@ export const findIDPiece = (pieceIDAccessor, oColumn, d) => {
322322
r => r.rName === pieceID || pieceIDAccessor(r.data) === pieceID
323323
)
324324

325-
if (pieceID === "" || basePieces === false || basePieces.length !== 1)
325+
if (
326+
pieceID === "" ||
327+
basePieces === undefined ||
328+
basePieces === false ||
329+
basePieces.length !== 1
330+
)
326331
return d
327332

328333
const basePiece = basePieces[0]

0 commit comments

Comments
 (0)