Skip to content

Commit

Permalink
Fix error on file removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Dec 30, 2024
1 parent 77f04f2 commit 7fe5344
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/components/Product/AddToCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ export default {
setCustomOptionFile(event, optionId) {
let file = event.target.files[0]
if (!file) {
return
}
let reader = new FileReader()
reader.onerror = (error) => alert(error)
reader.onload = () => {
Expand Down

0 comments on commit 7fe5344

Please sign in to comment.