Skip to content

Commit

Permalink
fix: flick when selecting node
Browse files Browse the repository at this point in the history
  • Loading branch information
gmolki committed Mar 25, 2024
1 parent 66146db commit a2f2c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useFetchMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import { MetricData, Node } from "../types";

const useFetchMetrics = (selectedNode: Node | undefined, nodes: Node[]) => {
const [isLoadingMetrics, setIsLoadingMetrics] = useState(false);
const [isLoadingMetrics, setIsLoadingMetrics] = useState(true);
const [metricData, setMetricData] = useState<MetricData | null>(null);

useEffect(() => {
Expand Down

0 comments on commit a2f2c0c

Please sign in to comment.