We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b260ad commit 47fe02bCopy full SHA for 47fe02b
frontend/components/dashboard/chart-header.tsx
@@ -55,6 +55,9 @@ const ChartHeader = ({ chart, projectId }: ChartHeaderProps) => {
55
config: settings.config,
56
}),
57
});
58
+ if (!response.ok) {
59
+ throw new Error(`Failed to duplicate chart: ${response.status}`);
60
+ }
61
const created = await response.json() as DashboardChart;
62
return [...(currentData || []), created];
63
},
0 commit comments