mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Fix new recipe redirect url
This commit is contained in:
parent
cdf95c5206
commit
fe3f2e896b
@ -78,7 +78,7 @@ pub fn AddRecipe<'ctx, G: Html>(cx: Scope<'ctx>, sh: StateHandler<'ctx>) -> View
|
||||
}
|
||||
}
|
||||
sh.dispatch(cx, Message::SaveRecipe((*entry).clone()));
|
||||
crate::js_lib::navigate_to_path(&format!("/ui/recipe/{}", entry.recipe_id()))
|
||||
crate::js_lib::navigate_to_path(&format!("/ui/recipe/edit/{}", entry.recipe_id()))
|
||||
.expect("Unable to navigate to recipe");
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user