diff --git a/app/frontend/src/components/ReadmeDashboard.astro b/app/frontend/src/components/ReadmeDashboard.astro
index db96e23..b366dc1 100644
--- a/app/frontend/src/components/ReadmeDashboard.astro
+++ b/app/frontend/src/components/ReadmeDashboard.astro
@@ -52,7 +52,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
@@ -168,7 +168,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
@@ -191,13 +191,13 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
- ![](/badge?org=&repo=&branch=](/badge?org=&repo=&branch=&type=)
@@ -218,7 +218,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
@@ -229,9 +229,9 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
- ![](/chart?org=&repo=&branch=](/chart?org=&repo=&branch=&type=&theme=dark&line=fill&width=175&height=160)
@@ -256,13 +256,13 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
- ![](/chart?org=&repo=&branch=](/chart?org=&repo=&branch=&type=)
@@ -288,13 +288,13 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
- ![](/chart?org=&repo=&branches=all&type=](/chart?org=&repo=&branches=all&type=)
@@ -320,13 +320,13 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
- ![](/chart?org=&repo=&branch=](/chart?org=&repo=&branch=&type=)
@@ -341,7 +341,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
const url = new URL(window.location.href);
url.searchParams.set("branch", branch);
window.history.pushState({ path: url.toString() }, "", url.toString());
- location.reload();
+ window.location.reload();
};
const currentURL = window.location.origin;
@@ -370,12 +370,9 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
branch = data.branch;
updateBranch();
}
- data.types.map((d) => {
- d.org = org;
- d.repo = repo;
- d.branch = branch;
- d.url = baseURL.replace("https://", "").replace("http://", "");
- });
+ data.url = baseURL.replace("https://", "").replace("http://", "");
+ data.org = org;
+ data.repo = repo;
document
.getElementById("data")