Merge pull request #3689 from zenhack/fix-3688

Fix #3688
This commit is contained in:
Kenton Varda authored and GitHub committed 2023-08-06 13:37:12 -05:00
commit 5531e1becb
1 file changed
+4 -3
@@ -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;