adrianhajdin / healthcare

Build a healthcare platform that streamlines patient registration, appointment scheduling, and medical records, and learn to implement complex forms and SMS notifications.
https://jsmastery.pro
1.83k stars 436 forks source link

Unhandled Runtime Error #46

Closed promumyhero closed 2 weeks ago

promumyhero commented 2 weeks ago

Capture

{table.getRowModel().rows?.length ? ( table.getRowModel().rows.map((row) => ( {row.getVisibleCells().map((cell) => ( {flexRender(cell.column.columnDef.cell, cell.getContext())} ))} )) ) : ( No results. )}

got this eror (TypeError: Cannot read properties of undefined (reading 'length')) dont know how to solve this

Ak6876 commented 2 weeks ago

image

According to your latest github repo, I found that the issue is with the "type Payment". Remove it and replace the Payment in "ColumnDef <>" with "Appointment". Make sure to export Appointment. I hope this resolves your issue.

promumyhero commented 2 weeks ago

thanksss