From aec3080cdfd3cb1e07e8efffb15d9723716a55cf Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 12 Apr 2021 10:34:41 -0700 Subject: [PATCH 1/2] fix: fixes e2e bug --- 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..e46b4394d13 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()) { From 113da8be42c6dfd107f69cff4745f8ed00443961 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 12 Apr 2021 10:42:53 -0700 Subject: [PATCH 2/2] 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 e46b4394d13..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()) {