diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue index 96aedbaa7..15d96e586 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue @@ -137,7 +137,7 @@ :name="!drag ? 'flip-list' : ''" >
@@ -499,10 +499,23 @@ export default defineNuxtComponent({ showTitleEditor.value = temp; } - const instructionList = computed({ - get: () => props.modelValue, - set: (value: RecipeStep[]) => context.emit("update:modelValue", value), - }); + const instructionList = ref([...props.modelValue]); + + watch( + () => props.modelValue, + (newVal) => { + instructionList.value = [...newVal]; + }, + { deep: true } + ); + + watch( + instructionList, + (newVal) => { + context.emit("update:modelValue", [...newVal]); + }, + { deep: true } + ); // =============================================================== // Ingredient Linker