fix: sort the mods in by published_at before displaying in latest mods section of landing page
All checks were successful
Release to Staging / build_and_release (push) Successful in 43s
All checks were successful
Release to Staging / build_and_release (push) Successful in 43s
This commit is contained in:
parent
c44a28f755
commit
018536e11d
@ -251,6 +251,7 @@ const DisplayLatestMods = () => {
|
|||||||
useDidMount(() => {
|
useDidMount(() => {
|
||||||
fetchMods({ source: window.location.host, limit: 4 })
|
fetchMods({ source: window.location.host, limit: 4 })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
res.sort((a, b) => b.published_at - a.published_at)
|
||||||
setLatestMods(res)
|
setLatestMods(res)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user