diff --git a/src/pages/Questions/QuestionOptions/ButtonsLayout/ButtonsOptions.tsx b/src/pages/Questions/QuestionOptions/ButtonsLayout/ButtonsOptions.tsx index 58fa21b2..aec92c5b 100644 --- a/src/pages/Questions/QuestionOptions/ButtonsLayout/ButtonsOptions.tsx +++ b/src/pages/Questions/QuestionOptions/ButtonsLayout/ButtonsOptions.tsx @@ -39,7 +39,7 @@ interface Props { questionHasParent: boolean; }; -const IgnoreImage = ["images", "emoji", "number", "date", "select", "text", "file", "rating"] +const IgnoreImage = ["images", "emoji", "number", "date", "select", "file", "rating"] const ButtonsOptions = memo(function ({ setSwitchState, diff --git a/src/stores/questions/actions.ts b/src/stores/questions/actions.ts index a6c32d3f..a920240f 100644 --- a/src/stores/questions/actions.ts +++ b/src/stores/questions/actions.ts @@ -453,6 +453,7 @@ export const changeQuestionType = (questionId: string, type: QuestionType) => { question.content = JSON.parse(JSON.stringify(defaultQuestionByType[type].content)); question.content.id = oldId; question.content.rule = oldRule; + if ("editedUrlImagesList" in question.content) question.content.editedUrlImagesList = null; }); };