diff --git a/eq-author-api/src/businessLogic/onAnswerDeleted.js b/eq-author-api/src/businessLogic/onAnswerDeleted.js index d0b7ebda37..a12341225d 100644 --- a/eq-author-api/src/businessLogic/onAnswerDeleted.js +++ b/eq-author-api/src/businessLogic/onAnswerDeleted.js @@ -81,6 +81,14 @@ const removeAnswerFromPiping = (ctx, deletedAnswer, pages) => { deletedAnswer.id, "Deleted answer" ); + + page.answers?.forEach((answer) => { + answer.label = updatePipingValue( + answer.label, + deletedAnswer.id, + "Deleted answer" + ); + }); }); const sections = getSections(ctx);