Skip to content

Commit

Permalink
Fix error on file removal (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 7, 2025
1 parent ec1d8b7 commit 0ad6ef5
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 0ad6ef5

Please sign in to comment.