File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ module.exports = function(config, options) {
85
85
86
86
// Serve the configuration.
87
87
app . get ( '/parse-dashboard-config.json' , function ( req , res ) {
88
- let apps = config . apps . map ( ( app ) => Object . assign ( { } , app ) ) ; // make a copy
88
+ let apps = config . apps . map ( ( app ) => Object . assign ( { masterKey : "******" } , app ) ) ; // make a copy
89
89
let response = {
90
90
apps : apps ,
91
91
newFeaturesInLatestVersion : newFeaturesInLatestVersion ,
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ class Dashboard extends React.Component {
138
138
AccountManager . setCurrentUser ( { user } ) ;
139
139
this . setState ( { newFeaturesInLatestVersion } ) ;
140
140
let appInfoPromises = apps . map ( app => {
141
+ // Set master key as a default string to avoid undefined value access issues
142
+ if ( ! app . masterKey ) app . masterKey = "******"
141
143
if ( app . serverURL . startsWith ( 'https://api.parse.com/1' ) ) {
142
144
//api.parse.com doesn't have feature availability endpoint, fortunately we know which features
143
145
//it supports and can hard code them
You can’t perform that action at this time.
0 commit comments