From 5b38ee0f2f4ef381b504231814ab582bb8a04eac Mon Sep 17 00:00:00 2001 From: agricreations Date: Thu, 25 Apr 2024 07:56:20 +0530 Subject: [PATCH] component view section updates depends on api response --- ui_tailwind_shadecn/src/api/components/component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui_tailwind_shadecn/src/api/components/component.tsx b/ui_tailwind_shadecn/src/api/components/component.tsx index 963cc73..e94bdce 100644 --- a/ui_tailwind_shadecn/src/api/components/component.tsx +++ b/ui_tailwind_shadecn/src/api/components/component.tsx @@ -18,7 +18,7 @@ export const fetchComponentStore = async (categorie: string , title: string) => throw new Error('Failed to fetch categorie'); } const responseData = await response.json(); - const postDetails = responseData.post_details; + const postDetails = responseData.response.post_details; // Extract post_details from response // const details: ComponentData[] = responseData.map((item: ResponseItem) => item.post_details);