From 5f77046cc68cdbd51a80bcc9b31906b7b1e5c055 Mon Sep 17 00:00:00 2001 From: Alec Aivazis Date: Wed, 6 Mar 2024 00:27:33 -0800 Subject: [PATCH] forgot ! --- packages/houdini/src/codegen/validators/componentFields.test.ts | 1 - packages/houdini/src/codegen/validators/componentFields.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/houdini/src/codegen/validators/componentFields.test.ts b/packages/houdini/src/codegen/validators/componentFields.test.ts index 6e56e5243b..65ea8a5b6f 100644 --- a/packages/houdini/src/codegen/validators/componentFields.test.ts +++ b/packages/houdini/src/codegen/validators/componentFields.test.ts @@ -33,7 +33,6 @@ const table: Row[] = [ { title: "componentFields can't overlap with type fields", pass: false, - nb_of_fail: 1, documents: [ `fragment MyFragmentOne on User @componentField(field: "firstName", prop: "user") { firstName diff --git a/packages/houdini/src/codegen/validators/componentFields.ts b/packages/houdini/src/codegen/validators/componentFields.ts index 8498ae1240..9dfed5be7b 100644 --- a/packages/houdini/src/codegen/validators/componentFields.ts +++ b/packages/houdini/src/codegen/validators/componentFields.ts @@ -80,7 +80,7 @@ export default async function componentFields(config: Config, docs: Document[]): graphql.isObjectType(parentType) && parentType.getFields()[fieldValue] if ( fieldDef && - fieldDef.astNode?.directives?.find( + !fieldDef.astNode?.directives?.find( (dir) => dir.name.value === config.componentFieldDirective ) ) {