From 366a5ea3a470357a6d908fe9e1023b1bb4262d3f Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 8 Mar 2022 10:33:30 +0100 Subject: [PATCH] Improved semantics when returning from switchMap --- src/assets/javascripts/components/search/result/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/components/search/result/index.ts b/src/assets/javascripts/components/search/result/index.ts index 2177c88cf..e6cc5ace2 100644 --- a/src/assets/javascripts/components/search/result/index.ts +++ b/src/assets/javascripts/components/search/result/index.ts @@ -143,7 +143,7 @@ export function mountSearchResult( .pipe( bufferCount(4), zipWith(boundary$), - switchMap(([chunk]) => of(...chunk)) + switchMap(([chunk]) => chunk) ) )) )