Simplify ws updating (#12390)

* Simplify ws updating

* Simplify return values
This commit is contained in:
Nicolas Mowen
2024-07-11 09:25:33 -06:00
committed by GitHub
parent fe4a737421
commit e416e44998
7 changed files with 14 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ export default function GeneralMetrics({
);
const [statsHistory, setStatsHistory] = useState<FrigateStats[]>([]);
const { payload: updatedStats } = useFrigateStats();
const updatedStats = useFrigateStats();
useEffect(() => {
if (initialStats == undefined || initialStats.length == 0) {