Skip to content

Commit

Permalink
fix: change template_name sale_report to report
Browse files Browse the repository at this point in the history
  • Loading branch information
HPc369 committed Jul 24, 2023
1 parent 3948deb commit 5873656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const AgentPage = () => {
try {
const contextTemp = history?.[history.length - 1]?.context;
const contextObj = JSON.parse(contextTemp);
setChartsData(contextObj?.template_name === 'sales_report' ? contextObj?.charts : undefined);
setChartsData(contextObj?.template_name === 'report' ? contextObj?.charts : undefined);
} catch (e) {
setChartsData(undefined);
}
Expand Down

0 comments on commit 5873656

Please sign in to comment.