We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 024cb04 + 54b0089 commit 5531e1bCopy full SHA for 5531e1b
shell/imports/client/apps/app-details-client.js
@@ -138,11 +138,12 @@ Template.sandstormAppDetails.helpers({
138
},
139
140
appMarketHost: function() {
141
- let host = "https://apps.sandstorm.io/";
+ let host = "https://apps.sandstorm.io";
142
const ref = Template.instance().data;
143
- const db = ref._db;
+ // Pull the database from our parent context:
144
+ const db = Template.parentData(1)._db;
145
const appMarket = db.collections.settings.findOne({ _id: "appMarketUrl" });
- if (!appMarket) {
146
+ if (appMarket) {
147
host = appMarket.value;
148
}
149
return host;
0 commit comments