Skip to content

Commit

Permalink
fix: #4657 preserve previous authSelections in update flow (#7255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Hajdrik authored May 4, 2021
1 parent 15b4eda commit afbaa08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getUpdateAuthDefaultsApplier = (context: any, defaultValuesFilename
): Promise<ServiceQuestionsResult> => {
const { functionMap, getAllDefaults } = await import(`../assets/${defaultValuesFilename}`);
if (!result.authSelections) {
result.authSelections = 'identityPoolAndUserPool';
result.authSelections = previousResult.authSelections ?? 'identityPoolAndUserPool';
}

const defaults = functionMap[result.authSelections](previousResult.resourceName);
Expand Down

0 comments on commit afbaa08

Please sign in to comment.