We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bd1829 + be83471 commit f70ad64Copy full SHA for f70ad64
1 file changed
examples/msw-react-crud/src/components/TaskList.tsx
@@ -36,8 +36,8 @@ export function TaskList({ client, onEdit, refreshTrigger }: TaskListProps) {
36
sort: ['priority', '-created_at']
37
});
38
39
- // Handle { value: [] } (OData), { records: [] } (Protocol) and [] (Raw) formats
40
- const rawValues = Array.isArray(result) ? result : (result.value || result.records || []);
+ // Handle { value: [] } (PaginatedResult) and [] (Raw) formats
+ const rawValues = Array.isArray(result) ? result : (result.value || []);
41
const fetchedTasks = [...rawValues] as Task[];
42
43
// Client-side sort fallback (since InMemoryDriver has limited sort support)
0 commit comments