Fix border color for target pools with one target that is failing

Signed-off-by: Julius Volz <julius.volz@gmail.com>
pull/14898/head
Julius Volz 10 months ago
parent 50cd453c8f
commit dfec29d8e5
  1. 2
      web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx

@ -53,7 +53,7 @@ type ScrapePools = {
}; };
const poolPanelHealthClass = (pool: ScrapePool) => const poolPanelHealthClass = (pool: ScrapePool) =>
pool.count > 1 && pool.downCount === pool.count pool.count > 0 && pool.downCount === pool.count
? panelClasses.panelHealthErr ? panelClasses.panelHealthErr
: pool.downCount >= 1 : pool.downCount >= 1
? panelClasses.panelHealthWarn ? panelClasses.panelHealthWarn

Loading…
Cancel
Save