TypeError: items.map is not a function
Diagnosis
The orders page breaks once a customer has more than one page of orders.
Root cause
The orders API returns { items, next } when it pages, and listOrders treats it as an array.
Evidence
LOGTypeError: items.map is not a function
2026-10-27T22:29:31Z
CODEitems can be an object when the API pages
Confidence: High
Files
- src/orders.js
Suggested fix
Read items from the paged response.