Skip to content

Commit

Permalink
component view section updates depends on api response
Browse files Browse the repository at this point in the history
  • Loading branch information
moovendhan-v committed Apr 25, 2024
1 parent 448b7c5 commit 5b38ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui_tailwind_shadecn/src/api/components/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b38ee0

Please sign in to comment.