one-article-fix
This commit is contained in:
parent
d255f6f0b1
commit
6602f48693
|
@ -308,7 +308,7 @@ export const FullArticle = (props: Props) => {
|
|||
|
||||
onMount(() => {
|
||||
console.debug(props.article)
|
||||
setPages((_) => ({comments: 0, rating: 0}))
|
||||
setPages((_) => ({ comments: 0, rating: 0 }))
|
||||
addSeen(props.article.slug)
|
||||
document.title = props.article.title
|
||||
updateIframeSizes()
|
||||
|
|
|
@ -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