From 93162f3a4b27c8ba6c39ed03183f666ebf71b25f Mon Sep 17 00:00:00 2001 From: franc Date: Mon, 28 Apr 2025 16:06:01 +0200 Subject: [PATCH] using model instead of ViewData --- Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml b/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml index 5884c07..5fa2a58 100644 --- a/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml +++ b/Francesco.Recipes.World/Views/Shared/_GetInstructions.cshtml @@ -28,7 +28,7 @@ } }); - const recipeId = '@ViewData["RecipeId"]'; + const recipeId = '@Model.RecipeId'; async function moveInstructionUp(instructionId) { try {