полное удаление картинки из дроп зоны-вопроса (без бд)
This commit is contained in:
parent
686cf6b4c1
commit
72ce4ca597
@ -49,7 +49,6 @@ export default function UploadImage({
|
||||
imageUrl={question.content.originalBack}
|
||||
originalImageUrl={question.content.originalBack}
|
||||
onImageUploadClick={async (file) => {
|
||||
alert("d")
|
||||
if (question.content.originalBack) {
|
||||
setOpenCropModal(true)
|
||||
} else {
|
||||
@ -72,6 +71,7 @@ export default function UploadImage({
|
||||
onDeleteClick={() => {
|
||||
updateQuestion(question.id, (question) => {
|
||||
question.content.back = null;
|
||||
question.content.originalBack = null;
|
||||
});
|
||||
}}
|
||||
onImageSavedClick={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user