Files
hamedandClaude Opus 4.8 ff54daf1ae fix(doctor): unwrap double-nested API response and guard empty sections
The GET /api/v1/doctor/{uuid} response is double-nested
({ success, data: { data: {...} } }), but the page only unwrapped one
level, leaving every field (name, specialties, expertise, address)
undefined — so خدمات / موقعیت مکانی / نظرات rendered empty or broken.

- Extract the doctor object with res.data?.data?.data in both
  generateMetadata and the page.
- Hide the خدمات block when expertise is empty (no fabricated data).
- Render the location map iframe and routing buttons only when the
  address has real latitude/longitude (was building q=null,null).
- Fix the comments list rendering a stray 0 on empty arrays.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 15:18:06 +03:30
..
2025-05-18 01:18:35 +03:30
2025-05-18 01:18:35 +03:30
2024-10-24 00:41:21 +03:30
2024-09-28 13:35:12 +03:30
2026-06-05 21:05:07 +03:30
2025-05-18 01:18:35 +03:30
2025-10-22 14:30:30 +03:30
2024-10-24 00:41:21 +03:30
2024-10-24 00:17:55 +03:30
2024-10-23 01:53:33 +03:30
2025-05-18 01:18:35 +03:30
2025-05-18 01:18:35 +03:30