From 617969ad1515272453b830c062c0a58df5bde75b Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 22 Jan 2024 17:12:54 +0300 Subject: [PATCH] filters-type-fix --- src/stores/zine/articles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/zine/articles.ts b/src/stores/zine/articles.ts index c953a17e..1fb5c731 100644 --- a/src/stores/zine/articles.ts +++ b/src/stores/zine/articles.ts @@ -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) })