From a0de4071d8dba8cbd2f6cd5ecc6a068b7c3b3a28 Mon Sep 17 00:00:00 2001 From: Tyler Roach Date: Wed, 4 Oct 2023 11:42:06 -0400 Subject: [PATCH] Update packages/appsync-modelgen-plugin/src/visitors/appsync-java-visitor.ts Co-authored-by: Dane Pilcher --- .../src/visitors/appsync-java-visitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/appsync-modelgen-plugin/src/visitors/appsync-java-visitor.ts b/packages/appsync-modelgen-plugin/src/visitors/appsync-java-visitor.ts index b9eba486d..1ca583ad4 100644 --- a/packages/appsync-modelgen-plugin/src/visitors/appsync-java-visitor.ts +++ b/packages/appsync-modelgen-plugin/src/visitors/appsync-java-visitor.ts @@ -38,7 +38,7 @@ export class AppSyncModelJavaVisitor< // We override lazy generation to also only generate lazy models if data store is disabled protected override isGenerateModelsForLazyLoadAndCustomSelectionSet(): boolean { - return super.isGenerateModelsForLazyLoadAndCustomSelectionSet() && !(this.config.isDataStoreEnabled ?? false); + return super.isGenerateModelsForLazyLoadAndCustomSelectionSet() && !this.config.isDataStoreEnabled; } generate(): string {