From d1fbc487757cf28f8cf4d676d57981f366fc3cd4 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sun, 13 Nov 2022 12:32:25 +0300 Subject: [PATCH] linting-fix --- src/components/Feed/List.tsx | 2 +- src/stores/zine/layouts.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Feed/List.tsx b/src/components/Feed/List.tsx index 88235ed3..76e28b8c 100644 --- a/src/components/Feed/List.tsx +++ b/src/components/Feed/List.tsx @@ -42,7 +42,7 @@ export default (props: ArticleListProps) => { return ( {t('Loading')}}> - + {() => } diff --git a/src/stores/zine/layouts.ts b/src/stores/zine/layouts.ts index 1a0f2f17..e042a210 100644 --- a/src/stores/zine/layouts.ts +++ b/src/stores/zine/layouts.ts @@ -10,8 +10,8 @@ const [sortedLayoutShouts, setSortedLayoutShouts] = createSignal { setSortedLayoutShouts((prevSorted: Map) => { const siblings = prevSorted.get(layout) - if (Boolean(siblings)) { - const uniqued = Array.from(new Set([...siblings, ...shouts])) + if (siblings) { + const uniqued = [...new Set([...siblings, ...shouts])] prevSorted.set(layout, uniqued) } return prevSorted