Skip to content

Commit bb62c3a

Browse files
committed
Set masterKey property
1 parent c63cd17 commit bb62c3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Parse-Dashboard/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function(config, options) {
8585

8686
// Serve the configuration.
8787
app.get('/parse-dashboard-config.json', function(req, res) {
88-
let apps = config.apps.map((app) => Object.assign({ masterKey: "" }, app)); // make a copy
88+
let apps = config.apps.map((app) => Object.assign({ masterKey: "******" }, app)); // make a copy
8989
let response = {
9090
apps: apps,
9191
newFeaturesInLatestVersion: newFeaturesInLatestVersion,

src/dashboard/Dashboard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class Dashboard extends React.Component {
138138
AccountManager.setCurrentUser({ user });
139139
this.setState({ newFeaturesInLatestVersion });
140140
let appInfoPromises = apps.map(app => {
141+
if (!app.masterKey) app.masterKey = "******"
141142
if (app.serverURL.startsWith('https://api.parse.com/1')) {
142143
//api.parse.com doesn't have feature availability endpoint, fortunately we know which features
143144
//it supports and can hard code them

0 commit comments

Comments
 (0)