Current recipe id was not set

This commit is contained in:
Greg Burri 2025-04-21 19:37:09 +02:00
parent 812ba9dc3b
commit 9dccd553bc
5 changed files with 28 additions and 12 deletions

View file

@ -22,8 +22,13 @@ pub async fn recipes_list_fragments(
) -> Result<impl IntoResponse> {
Ok(Html(
RecipesListFragmentTemplate {
recipes: Recipes::new(connection, &context.user, context.tr.current_lang_code())
.await?,
recipes: Recipes::new(
connection,
&context.user,
context.tr.current_lang_code(),
current_recipe.current_recipe_id,
)
.await?,
context,
}
.render()?,