Merge pull request #1957 from Safelite/feature/CSR-2185

CSR-2185 | Fix cms answers overwrite
This commit is contained in:
scottkiener 2024-08-28 15:37:01 -04:00 committed by GitHub
commit 210c4257fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,8 +83,13 @@ export default {
return filteredAnswers.map((ans) => { return filteredAnswers.map((ans) => {
const newName = ans.Name.includes("-") ? ans.Name.split("-")[1] : ans.Name; const newName = ans.Name.includes("-") ? ans.Name.split("-")[1] : ans.Name;
ans.Name = newName; return {
return ans; Name: newName,
AnswerImageUrl: ans.AnswerImageUrl,
ImageId: ans.ImageId,
SubText: ans.SubText,
Text: ans.Text,
};
}); });
}, },
shouldDisplayReplaceOptionsQuestion() { shouldDisplayReplaceOptionsQuestion() {