From 1c2b53cfe8cf8d2dca7b7b94526661a58c54d6f0 Mon Sep 17 00:00:00 2001 From: tony Date: Mon, 26 Aug 2024 15:26:00 +0300 Subject: [PATCH] topics-fmt-fix --- src/routes/topic/(all-topics).tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/topic/(all-topics).tsx b/src/routes/topic/(all-topics).tsx index b64b8c36..c06002cd 100644 --- a/src/routes/topic/(all-topics).tsx +++ b/src/routes/topic/(all-topics).tsx @@ -19,7 +19,13 @@ export default (props: RouteSectionProps<{ topics: Topic[] }>) => { const { t } = useLocalize() const topics = createAsync(async () => props.data.topics || (await fetchData()) || []) const { addTopics } = useTopics() - createEffect(on(() => topics() || [], (ttt: Topic[]) => ttt && addTopics(ttt), { defer: true})) + createEffect( + on( + () => topics() || [], + (ttt: Topic[]) => ttt && addTopics(ttt), + { defer: true } + ) + ) return (