Skip to content

Commit

Permalink
fix: update fetch URLs to use raw GitHub links for symbols data
Browse files Browse the repository at this point in the history
  • Loading branch information
berntpopp committed Feb 5, 2025
1 parent f4128f3 commit 5b37b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/SearchComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
const loadSymbols = async () => {
isLoading.value = true;
try {
const response = await fetch('json/symbols_index.json');
const response = await fetch('https://raw.githubusercontent.com/halbritter-lab/nephro_candidate_score/refs/heads/main/gene_score/predictions/results/json/symbols_index.json');
if (!response.ok) {
throw new Error('Failed to fetch symbols');
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/GeneInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
onMounted(async () => {
if (props.symbol) {
try {
const response = await axios.get(`../json/symbols/${props.symbol}.json`)
const response = await axios.get(`https://raw.githubusercontent.com/halbritter-lab/nephro_candidate_score/refs/heads/main/gene_score/predictions/results/json/symbols/${props.symbol}.json`)
geneData.value = response.data
} catch (error) {
// Redirect to PageNotFound view if there is an error (e.g., file not found)
Expand Down

0 comments on commit 5b37b7d

Please sign in to comment.