From 18c9a310fd6fbc25c01df40dfd7d0ad731da17d1 Mon Sep 17 00:00:00 2001 From: akshbhu <39866697+akshbhu@users.noreply.github.com> Date: Mon, 12 Apr 2021 11:01:46 -0700 Subject: [PATCH] fix: fixes e2e bug (#7067) * fix: fixes e2e bug * fix: address comments --- packages/amplify-cli/src/context-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-cli/src/context-manager.ts b/packages/amplify-cli/src/context-manager.ts index aa2eec0cfac..eb1bd778a05 100644 --- a/packages/amplify-cli/src/context-manager.ts +++ b/packages/amplify-cli/src/context-manager.ts @@ -36,7 +36,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()) {