#TypeError: Cannot read properties of null (reading 'name')
16 messages · Page 1 of 1 (latest)
Please help
okay let me check your code
I just tried running your code, and I can see the patient name. There might be some incorrect data in your appwrite. I suggest deleting all appointments and creating a new one to see if the error still occurs
I had fixed it temporarly before to say Unknown if it is null and continued with the youtube tutorial the admin dashboard is complete now but It is not working, I tried creating new appointments but It still says the same error, aditionally the action buttons in the admin dashboard does not work too, and also in columns.tsx
<AppointmentModal
type="schedule"
// patientId={data.patient.$id}
userId={data.userId}
appointment={data}
/>
<AppointmentModal
type="cancel"
// patientId={data.patient.$id}
userId={data.userId}
appointment={data}
/>
these throw error so i commented them out,
I dont know what to do now, can you please fix it,
here is the new code in github
Are you already delete all your appointment before create new one?
Yes I deleted the appointments from appwrite and created new ones with new user, but it didnt work
Maybe you can try use my env, i will send it to your DM
ok
any update possible solutions for this problem? i have the same issue