Cleanup code
This commit is contained in:
parent
d55be2505d
commit
b9591d7364
|
@ -48,8 +48,6 @@ export const TopicView = (props: Props) => {
|
||||||
const [favoriteTopArticles, setFavoriteTopArticles] = createSignal<Shout[]>([])
|
const [favoriteTopArticles, setFavoriteTopArticles] = createSignal<Shout[]>([])
|
||||||
const [reactedTopMonthArticles, setReactedTopMonthArticles] = createSignal<Shout[]>([])
|
const [reactedTopMonthArticles, setReactedTopMonthArticles] = createSignal<Shout[]>([])
|
||||||
|
|
||||||
console.log('%c!!! :', 'color: #bada55', sortedArticles())
|
|
||||||
|
|
||||||
const [topic, setTopic] = createSignal<Topic>()
|
const [topic, setTopic] = createSignal<Topic>()
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
|
@ -84,9 +82,7 @@ export const TopicView = (props: Props) => {
|
||||||
setReactedTopMonthArticles(result)
|
setReactedTopMonthArticles(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const loadRandom = () => {
|
const loadRandom = () => {
|
||||||
console.log("!!! loadRandom:");
|
|
||||||
loadFavoriteTopArticles(topic()?.slug)
|
loadFavoriteTopArticles(topic()?.slug)
|
||||||
loadReactedTopMonthArticles(topic()?.slug)
|
loadReactedTopMonthArticles(topic()?.slug)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user