diff --git a/typescript/frontend-marios2/src/content/dashboards/SodiohomeInstallations/FlatInstallationView.tsx b/typescript/frontend-marios2/src/content/dashboards/SodiohomeInstallations/FlatInstallationView.tsx index 68c51a44f..b37761a9f 100644 --- a/typescript/frontend-marios2/src/content/dashboards/SodiohomeInstallations/FlatInstallationView.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/SodiohomeInstallations/FlatInstallationView.tsx @@ -371,45 +371,15 @@ const FlatInstallationView = (props: FlatInstallationViewProps) => { )} {showAnomalyColumn && ( - {(() => { - const a = anomalyMap.get(installation.id); - if (!a) { - return ( - - — - - ); - } - return ( -
- - - {a.lastDetectedAt} · {a.lastVoltage.toFixed(2)} V - -
- ); - })()} + {anomalyMap.has(installation.id) && ( + + )}
)}