homarr-labs / homarr

Found non-null assertions JS-0339
Anti-pattern
Major
2 occurrences in this check
22    },
23  ];
24  return (
25    <GraphWrapper title={"Memory"} subtitle={`${humanFileSize(memoryLoad[memoryLoad.length - 1]!.loadInBytes)} / ${humanFileSize(maxAvailableBytes)}`} showSubtitle={hasLast}>26      <ResponsiveLine
27        data={data}
28        margin={{ top: 10, right: 10, bottom: 10, left: 10 }}
20    },
21  ];
22  return (
23    <GraphWrapper title={"CPU"} subtitle={`${cpuLoad[cpuLoad.length - 1]!.sumLoad.toFixed(2)}%`} showSubtitle={hasLast}>24      <ResponsiveLine
25        data={data}
26        margin={{ top: 10, right: 10, bottom: 10, left: 10 }}