Graceful fallback for unsupported body range type
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
b94bf9d88f
commit
b2564e07ad
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ function rangeToPartialNode(
|
|||
if (range.style === BodyRange.Style.NONE) {
|
||||
return {};
|
||||
}
|
||||
throw missingCaseError(range.style);
|
||||
return {};
|
||||
}
|
||||
if (BodyRange.isLink(range)) {
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue