mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Simplify ws updating (#12390)
* Simplify ws updating * Simplify return values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user