filters-type-fix
This commit is contained in:
parent
cecf712cc3
commit
617969ad15
|
@ -222,7 +222,7 @@ export const useArticlesStore = (initialState: InitialState = {}) => {
|
|||
|
||||
if (initialState.layout) {
|
||||
// eslint-disable-next-line promise/catch-or-return
|
||||
loadShouts({ filters: { layout: initialState.layout }, limit: 10 }).then(({ newShouts }) => {
|
||||
loadShouts({ filters: { layouts: [initialState.layout] }, limit: 10 }).then(({ newShouts }) => {
|
||||
addArticles(newShouts)
|
||||
setSortedArticles(newShouts)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user