Skip to content
Snippets Groups Projects
Unverified Commit 0e3883e4 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by GitHub
Browse files

Regression: Do not refresh statistics when opening the info panel (#17060)

parent 421d2a89
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ export function InformationRoute() {
useEffect(() => {
let didCancel = false;
const fetchStatistics = async () => {
const fetchStatistics = async ({ refresh = false } = {}) => {
if (!canViewStatistics) {
setStatistics(null);
setInstances(null);
......@@ -32,7 +32,7 @@ export function InformationRoute() {
try {
const [statistics, instances] = await Promise.all([
getStatistics({ refresh: true }),
getStatistics({ refresh }),
getInstances(),
]);
......@@ -62,7 +62,7 @@ export function InformationRoute() {
return;
}
fetchStatistics();
fetchStatistics({ refresh: true });
};
const handleClickDownloadInfo = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment