From d7c4e9ad128342b57cb35875f88ef0a8b858f054 Mon Sep 17 00:00:00 2001 From: Firesieht Date: Sat, 22 Oct 2022 19:35:53 +0300 Subject: [PATCH] fix bugs --- pages/api/fetch.ts | 1 - сomponents/ProductsView/index.tsx | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/api/fetch.ts b/pages/api/fetch.ts index 93c9597..8685ee8 100644 --- a/pages/api/fetch.ts +++ b/pages/api/fetch.ts @@ -5,7 +5,6 @@ import { host } from "./consts" export const fetcher = axios.create( { baseURL: host, - timeout: 1000, } ) diff --git a/сomponents/ProductsView/index.tsx b/сomponents/ProductsView/index.tsx index 67302fb..0fee8d0 100644 --- a/сomponents/ProductsView/index.tsx +++ b/сomponents/ProductsView/index.tsx @@ -8,9 +8,19 @@ export const ProductsView:React.FC = () =>{ console.log(getProducts) return(
- - Card content - + { + getProducts.map(el=> +
+ {el.category} +
+
+ { + el.characteristics == undefined? "":el.characteristics.toString() + } +
+
) + } +
); } \ No newline at end of file