Skip to content

Commit 5531e1b

Browse files
authored
Merge pull request #3689 from zenhack/fix-3688
Fix #3688
2 parents 024cb04 + 54b0089 commit 5531e1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shell/imports/client/apps/app-details-client.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ Template.sandstormAppDetails.helpers({
138138
},
139139

140140
appMarketHost: function() {
141-
let host = "https://apps.sandstorm.io/";
141+
let host = "https://apps.sandstorm.io";
142142
const ref = Template.instance().data;
143-
const db = ref._db;
143+
// Pull the database from our parent context:
144+
const db = Template.parentData(1)._db;
144145
const appMarket = db.collections.settings.findOne({ _id: "appMarketUrl" });
145-
if (!appMarket) {
146+
if (appMarket) {
146147
host = appMarket.value;
147148
}
148149
return host;

0 commit comments

Comments
 (0)