mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
feat: additional recipe sort behavior (#1858)
* changed default sort direction for certain attrs * added workaround for filtering out null datetimes * filtered out null-valued results for certain sorts * removed unecessary parse * used minyear instead of 1900
This commit is contained in:
parent
33dffccaa5
commit
1b9ff454fb
4 changed files with 39 additions and 17 deletions
|
@ -19,7 +19,8 @@ export const useLazyRecipes = function () {
|
|||
cookbook: string | null = null,
|
||||
category: string | null = null,
|
||||
tag: string | null = null,
|
||||
tool: string | null = null
|
||||
tool: string | null = null,
|
||||
queryFilter: string | null = null,
|
||||
) {
|
||||
const { data } = await api.recipes.getAll(page, perPage, {
|
||||
orderBy,
|
||||
|
@ -28,6 +29,7 @@ export const useLazyRecipes = function () {
|
|||
categories: category,
|
||||
tags: tag,
|
||||
tools: tool,
|
||||
queryFilter,
|
||||
});
|
||||
return data ? data.items : [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue