one-article-fix
This commit is contained in:
parent
d255f6f0b1
commit
6602f48693
|
@ -28,7 +28,9 @@ export const route = {
|
|||
|
||||
export default (props: RouteSectionProps<{ articles: Shout[] }>) => {
|
||||
const params = useParams()
|
||||
const articles = createAsync(async () => props.data.articles || (await fetchTopicShouts(params.slug)) || [])
|
||||
const articles = createAsync(
|
||||
async () => props.data.articles || (await fetchTopicShouts(params.slug)) || []
|
||||
)
|
||||
const { topicEntities } = useTopics()
|
||||
const { t } = useLocalize()
|
||||
const topic = createMemo(() => topicEntities?.()[params.slug])
|
||||
|
|
Loading…
Reference in New Issue
Block a user