Commit ef7ce344 authored by Robert Knight's avatar Robert Knight

Ensure that `isOrphan` helper returns a boolean

TS 4.0 complained in a few places that this function may return
`undefined`.
parent b737e07b
......@@ -232,7 +232,7 @@ export function isHighlight(annotation) {
* @param {Annotation} annotation
*/
export function isOrphan(annotation) {
return hasSelector(annotation) && annotation.$orphan;
return hasSelector(annotation) && annotation.$orphan === true;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment