Skip to content

Commit

Permalink
remove dev from subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
qu-y committed Dec 6, 2024
1 parent 9cee017 commit 345d807
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/bioPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
for (let i in state.diseaseGroups) {
let group = state.diseaseGroups[i];

if (group.name == state.host.subDomain) {
if (group.name == state.host.subDomain?.replace("dev", "")) {
return group;
}
}
Expand All @@ -116,7 +116,7 @@ export default {

//this is the root portal, display all data for group
isRootPortal(state, getters) {
if (!state.host.subDomain)
if (!state.host.subDomain?.replace("dev", ""))
//no subdomain found, assume main portal
return true;
else {
Expand Down Expand Up @@ -150,7 +150,7 @@ export default {
// fetch all the phenotypes for this portal
async getPhenotypes({ state, commit }) {
let qs = queryString.stringify(
{ q: state.host.subDomain || "md" },
{ q: state.host.subDomain?.replace("dev", "") || "md" },
{ skipNull: true }
);
let json = await fetch(
Expand All @@ -162,7 +162,7 @@ export default {
},
async getDocumentations({ state, commit }) {
let qs = queryString.stringify(
{ q: state.host.subDomain || "md" },
{ q: state.host.subDomain?.replace("dev", "") || "md" },
{ skipNull: true }
);
let json = await fetch(
Expand All @@ -174,7 +174,7 @@ export default {
},
async getAncestries({ state, commit }) {
let qs = queryString.stringify(
{ q: state.host.subDomain || "md" },
{ q: state.host.subDomain?.replace("dev", "") || "md" },
{ skipNull: true }
);
let json = await fetch(
Expand All @@ -186,7 +186,7 @@ export default {
// fetch all the complicaitons for given disease group
async getComplications({ state, commit }) {
let qs = queryString.stringify(
{ q: state.host.subDomain || "md" },
{ q: state.host.subDomain?.replace("dev", "") || "md" },
{ skipNull: true }
);
let json = await fetch(
Expand All @@ -200,7 +200,7 @@ export default {
// fetch all datasets for this portal
async getDatasets({ state, commit }) {
let qs = queryString.stringify(
{ q: state.host.subDomain || "md" },
{ q: state.host.subDomain?.replace("dev", "") || "md" },
{ skipNull: true }
);
let json = await fetch(
Expand Down

0 comments on commit 345d807

Please sign in to comment.