feat: add support for prefilled image URL in recipe creation and display
This commit is contained in:
@@ -44,6 +44,9 @@ export default function CreateRecipePage() {
|
||||
// Omdirigera till /recipes/write med förifylld Markdown
|
||||
// Vi använder sessionStorage för att passa data mellan sidor
|
||||
sessionStorage.setItem('prefilled_markdown', data.markdown);
|
||||
if (data.imageUrl) {
|
||||
sessionStorage.setItem('prefilled_image_url', data.imageUrl);
|
||||
}
|
||||
router.push('/recipes/write');
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user