thecodeholic / laravel-vue-ecommerce

E-commerce project with Laravel and Vue.js
586 stars 169 forks source link

Attempt to read property \"id\" on null #3

Open seanlunar opened 1 year ago

seanlunar commented 1 year ago

on the administrator side orders view are showing blank with id on null, how can i fix this also showing error 500 from database but everythong else is working just. fine

Screenshot 2022-11-26 at 11 13 22 AM
thecodeholic commented 1 year ago

I think that happens when the order is made on customer which does not have addresses. I plan to restrict making order on the customer if the customer does not have addresses and that will fix the issues.

seanlunar commented 1 year ago

Thank you. that was exactly the problem., i love your work Simple but perfect

thecodeholic commented 1 year ago

Thanks a lot. Let's leave the issue open until I restrict making an order if the address information is not provided on customer.

mandixx commented 1 year ago

I've opened PR which should fix this https://github.com/thecodeholic/laravel-vue-ecommerce/pull/6