Graceful fallback for unsupported body range type

This commit is contained in:
Fedor Indutny
2024-10-17 14:19:31 -07:00
committed by GitHub
parent bc9ced22a0
commit 80b63cceb6

View File

@@ -413,7 +413,7 @@ function rangeToPartialNode(
if (range.style === BodyRange.Style.NONE) {
return {};
}
throw missingCaseError(range.style);
return {};
}
if (BodyRange.isLink(range)) {
return {