Fix pull request panel markdown on native

This commit is contained in:
Mohamed Boudra
2026-06-12 13:18:01 +07:00
parent f930956e5c
commit 9e9d0ee305
2 changed files with 21 additions and 1 deletions
@@ -681,7 +681,7 @@ function findClosingBacktickRun(
}
function mergeProtectedRanges(ranges: ProtectedMarkdownRange[]): ProtectedMarkdownRange[] {
const sorted = ranges.toSorted((a, b) => a.start - b.start);
const sorted = [...ranges].sort((a, b) => a.start - b.start);
const merged: ProtectedMarkdownRange[] = [];
for (const range of sorted) {