Skip to content

Commit

Permalink
Merge pull request #3689 from zenhack/fix-3688
Browse files Browse the repository at this point in the history
Fix #3688
  • Loading branch information
kentonv committed Aug 6, 2023
2 parents 024cb04 + 54b0089 commit 5531e1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shell/imports/client/apps/app-details-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ Template.sandstormAppDetails.helpers({
},

appMarketHost: function() {
let host = "https://apps.sandstorm.io/";
let host = "https://apps.sandstorm.io";
const ref = Template.instance().data;
const db = ref._db;
// Pull the database from our parent context:
const db = Template.parentData(1)._db;
const appMarket = db.collections.settings.findOne({ _id: "appMarketUrl" });
if (!appMarket) {
if (appMarket) {
host = appMarket.value;
}
return host;
Expand Down

0 comments on commit 5531e1b

Please sign in to comment.