Skip to content

Commit

Permalink
Update packages/amplify-cli/src/context-manager.ts
Browse files Browse the repository at this point in the history
added ? for type checking
  • Loading branch information
ammarkarachi authored Oct 8, 2021
1 parent 9d958aa commit 6aa599a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify-cli/src/context-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const getProjectSettings = (): ProjectSettings => {
const projectConfig = stateManager.getProjectConfig();
const frontend = projectConfig.frontend;
projectSettings.frontend = frontend;
projectSettings.framework = projectConfig?.[frontend].framework;
projectSettings.framework = projectConfig?.[frontend]?.framework;
}

if (stateManager.localEnvInfoExists()) {
Expand Down

0 comments on commit 6aa599a

Please sign in to comment.