The SDK wraps API responses as { data: { code, message, data: [...] } }.
Code was incorrectly accessing resp.data['200'] which doesn't exist.
Fix to use resp.data.data to reach the actual array.
|
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| client | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| App.css | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||