How To Prevent cannot read property map of undefined How To Prevent cannot read property map of undefine