Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
remove branch from code
Browse files Browse the repository at this point in the history
  • Loading branch information
yeudit committed Feb 18, 2024
1 parent df11cdf commit 7fba709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/src/gh-pages/reports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Reports: React.FC = () => {
const [selectedFile, setSelectedFile] = useState<string | null>(null);
const [fileContent, setFileContent] = useState<string>("");
useEffect(() => {
const apiUrl = 'https://api.github.com/repos/att/qujata/contents/reports?ref=static-web-page/US63/conditional-main-page';
const apiUrl = 'https://api.github.com/repos/att/qujata/contents/reports?ref=main';
fetch(apiUrl)
.then(response => response.json())
.then((data: File[]) => {
Expand All @@ -21,7 +21,7 @@ export const Reports: React.FC = () => {
}, []);
useEffect(() => {
if (selectedFile) {
fetch(`https://raw.githubusercontent.com/att/qujata/static-web-page/US63/conditional-main-page/${selectedFile}`)
fetch(`https://raw.githubusercontent.com/att/qujata/main/${selectedFile}`)
.then(response => response.json())
.then((data: any) => {
const fileContent = JSON.stringify(data, null, 2); // Decode the base64 content
Expand Down

0 comments on commit 7fba709

Please sign in to comment.