🐛 API endpoints not working with multiple widgets

This commit is contained in:
Meier Lukas
2023-03-30 23:15:08 +02:00
parent 18d58ad4e7
commit 77c8cb8f9e
12 changed files with 103 additions and 38 deletions

View File

@@ -11,6 +11,7 @@ interface DashDotGraphProps {
dashDotUrl: string;
usePercentages: boolean;
info: DashDotInfo;
widgetId: string;
}
export const DashDotGraph = ({
@@ -21,12 +22,13 @@ export const DashDotGraph = ({
dashDotUrl,
usePercentages,
info,
widgetId,
}: DashDotGraphProps) => {
const { t } = useTranslation('modules/dashdot');
const { classes } = useStyles();
if (graph === 'storage' && isCompact) {
return <DashDotCompactStorage info={info} />;
return <DashDotCompactStorage info={info} widgetId={widgetId} />;
}
if (graph === 'network' && isCompact) {