Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws-amplify/amplify-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3ecfbe0c2a37708539f8fc00e01446d4d18e729a
Choose a base ref
..
head repository: aws-amplify/amplify-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ab5ba827314686189d730f00863f78e41ca9fe1
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/amplify-util-uibuilder/src/commands/generateComponents.ts
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ export const run = async (context: $TSContext, eventType: 'PostPush' | 'PostPull
studioClient.isGraphQLSupported ? getAmplifyDataSchema(context) : Promise.resolve(undefined),
]);
const genericDataSchema = dataSchema ? mapGenericDataSchemaToCodegen(dataSchema) : undefined;

const canGenerateDataComponents = genericDataSchema && studioClient.isGraphQLSupported;

const apiConfiguration: AmplifyUIBuilder.ApiConfiguration = canGenerateDataComponents