Merge branch 'dev' into 'staging'
text имеет картинку, смена типа вопроса удаляет картинки See merge request frontend/squiz!374
This commit is contained in:
commit
b862e1cabe
@ -39,7 +39,7 @@ interface Props {
|
|||||||
questionHasParent: boolean;
|
questionHasParent: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const IgnoreImage = ["images", "emoji", "number", "date", "select", "text", "file", "rating"]
|
const IgnoreImage = ["images", "emoji", "number", "date", "select", "file", "rating"]
|
||||||
|
|
||||||
const ButtonsOptions = memo<Props>(function ({
|
const ButtonsOptions = memo<Props>(function ({
|
||||||
setSwitchState,
|
setSwitchState,
|
||||||
|
@ -453,6 +453,7 @@ export const changeQuestionType = (questionId: string, type: QuestionType) => {
|
|||||||
question.content = JSON.parse(JSON.stringify(defaultQuestionByType[type].content));
|
question.content = JSON.parse(JSON.stringify(defaultQuestionByType[type].content));
|
||||||
question.content.id = oldId;
|
question.content.id = oldId;
|
||||||
question.content.rule = oldRule;
|
question.content.rule = oldRule;
|
||||||
|
if ("editedUrlImagesList" in question.content) question.content.editedUrlImagesList = null;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user