diff --git a/js/accessory/child/accessory_store_edit_form.js b/js/accessory/child/accessory_store_edit_form.js index 70a1ac8..2383b5c 100644 --- a/js/accessory/child/accessory_store_edit_form.js +++ b/js/accessory/child/accessory_store_edit_form.js @@ -137,7 +137,7 @@ $(document).on("click", ".file-iteme .handle", function (event) { imgListUp.splice(0, imgListUp.length); let index = $(this).next().attr('data-index'); let isOld = $(this).next().attr('isOld'); - if (isOld) { + if (isOld && isOld !== 'undefined') { delImgIdList.push(isOld); $(this).parent().remove(); } else {