From dbad6491819e8a7ef67fb3a83b1a13c605ae0a82 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 12 Mar 2021 15:17:11 +0100 Subject: [PATCH] Formatting --- src/assets/javascripts/components/toc/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/assets/javascripts/components/toc/index.ts b/src/assets/javascripts/components/toc/index.ts index a682aec87..02642fc5e 100644 --- a/src/assets/javascripts/components/toc/index.ts +++ b/src/assets/javascripts/components/toc/index.ts @@ -162,9 +162,7 @@ export function watchTableOfContents( }), /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */ - map(index => new Map([...index] - .sort(([, a], [, b]) => a - b) - )), + map(index => new Map([...index].sort(([, a], [, b]) => a - b))), /* Re-compute partition when viewport offset changes */ switchMap(index => combineLatest([adjust$, viewport$])