Explorar o código

fetch on param change

Signed-off-by: Thomas Evans <tevans3@icloud.com>
jjarrett21 %!s(int64=2) %!d(string=hai) anos
pai
achega
2eeb9bdf92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ui/src/CloudCostReports.js

+ 1 - 1
ui/src/CloudCostReports.js

@@ -167,7 +167,7 @@ const CloudCostReports = () => {
   }, [init, fetch]);
 
   React.useEffect(() => {
-    setFetch(true);
+    setFetch(!fetch);
     setTitle(generateTitle({ window, aggregateBy, costMetric }));
   }, [window, aggregateBy, costMetric]);