+ {/* Note: we use chart.modified as the key here so the chart reloads when the user edits the chart */}
@@ -155,3 +160,20 @@ export const ChartPanel: FC = memo(({ actions, model, api = DEFAULT_API_W
);
});
+ChartPanel.displayName = 'ChartPanel';
+
+export const ChartList: FC = memo(({ actions, model }) => {
+ const { queryInfo, selectedReportIds } = model;
+
+ // If we don't have a queryInfo we can't get filters off the model, so we can't render any charts
+ if (queryInfo === undefined || selectedReportIds.length === 0) return null;
+
+ return (
+