diff --git a/webapp/packages/chat-sdk/src/ShowCase/index.tsx b/webapp/packages/chat-sdk/src/ShowCase/index.tsx index 58aa573d9..dff1d9b38 100644 --- a/webapp/packages/chat-sdk/src/ShowCase/index.tsx +++ b/webapp/packages/chat-sdk/src/ShowCase/index.tsx @@ -31,7 +31,7 @@ const ShowCase: React.FC = ({ height, agentId, onSendMsg }) => { if (pageNoValue === 1) { setLoading(false); } - const showCaseMapRes: any = res.data.showCaseMap || []; + const showCaseMapRes: any = res.data.showCaseMap || {}; const list = Object.keys(showCaseMapRes) .reduce((result: ShowCaseItemType[], key: string) => { result.push({ msgList: showCaseMapRes[key], caseId: key });