Skip to content

Commit

Permalink
Replace magic string with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeidlin committed Feb 2, 2023
1 parent 4c94142 commit db33b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/germplasm/GermplasmByList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class GermplasmByList extends GermplasmBase {
const matchingLists: any[] = lists.filter(list => list.listDbId === this.$route.params.listId);
this.list = matchingLists[0];
this.referenceId = matchingLists[0].externalReferences.reduce((result: string, ref: any) => {
return ref.referenceSource == "breeding-insight.net/lists" ? ref.referenceID : result;
return ref.referenceSource == `${process.env.VUE_APP_BI_REFERENCE_SOURCE}/lists` ? ref.referenceID : result;
},undefined);
}
}
Expand Down

0 comments on commit db33b15

Please sign in to comment.