From c1e5937ff3e68a48f335b7786189eb19d2b7c821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20D=C5=BEoi=C4=87?= <37804613+mariodz95@users.noreply.github.com> Date: Mon, 21 Jul 2025 17:02:36 +0200 Subject: [PATCH] fix: cookbook random recipe selector (#5768) --- frontend/composables/recipes/use-recipes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/composables/recipes/use-recipes.ts b/frontend/composables/recipes/use-recipes.ts index 104e7403d..f89780622 100644 --- a/frontend/composables/recipes/use-recipes.ts +++ b/frontend/composables/recipes/use-recipes.ts @@ -90,6 +90,8 @@ export const useLazyRecipes = function (publicGroupSlug: string | null = null) { } async function getRandom(query: RecipeSearchQuery | null = null, queryFilter: string | null = null) { + query = query || {}; + query._searchSeed = query._searchSeed || Date.now().toString(); const { data } = await api.recipes.getAll(1, 1, getParams("random", "desc", null, query, queryFilter)); if (data?.items.length) { return data.items[0];