Use model instead of view data
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
const recipeId = '@Model.RecipeId';
|
||||
|
||||
|
||||
async function moveInstructionUp(instructionId) {
|
||||
try {
|
||||
const response = await fetch(`/Recipe/${recipeId}/Instruction/${instructionId}/move-up`, {
|
||||
|
||||
Reference in New Issue
Block a user