Skip to content

Commit

Permalink
fix: undefined appId destructuring (#6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle committed Dec 11, 2020
1 parent 4b22fb2 commit b817664
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function validateConfig(context) {

function persistLocalEnvConfig(context) {
let { awsConfigInfo } = context.exeInfo;
const { appId } = _.get(context, ['exeInfo', 'inputParams', 'amplify'], undefined);
const { appId } = _.get(context, ['exeInfo', 'inputParams', 'amplify'], {});
if (appId && doAdminCredentialsExist(appId)) {
awsConfigInfo = {
configLevel: 'amplifyAdmin',
Expand Down

0 comments on commit b817664

Please sign in to comment.