From 31f92414e79d89487b8cdd361f0a2efa1e631df4 Mon Sep 17 00:00:00 2001 From: Namiko Date: Mon, 26 Feb 2024 15:54:41 +0900 Subject: [PATCH] Revert "[step7] fix setItems() properties" (#206) Reverts mercari-build/mercari-build-training#205 https://github.com/mercari-build/mercari-build-training/pull/205#issuecomment-1963382677 --- .../simple-mercari-web/src/components/ItemList/ItemList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/simple-mercari-web/src/components/ItemList/ItemList.tsx b/typescript/simple-mercari-web/src/components/ItemList/ItemList.tsx index 8d57249fe..e5f5854de 100644 --- a/typescript/simple-mercari-web/src/components/ItemList/ItemList.tsx +++ b/typescript/simple-mercari-web/src/components/ItemList/ItemList.tsx @@ -31,7 +31,7 @@ export const ItemList: React.FC = (props) => { .then(response => response.json()) .then(data => { console.log('GET success:', data); - setItems(data); + setItems(data.items); onLoadCompleted && onLoadCompleted(); }) .catch(error => {