From 136f5706ac372be9f9c5639772cf98e1ea4bd162 Mon Sep 17 00:00:00 2001 From: Alec Aivazis Date: Fri, 16 Dec 2022 01:04:44 -0800 Subject: [PATCH] tweak variable name --- packages/houdini/src/codegen/transforms/list.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/houdini/src/codegen/transforms/list.ts b/packages/houdini/src/codegen/transforms/list.ts index 76ca02fbcb..5f45c0e6f1 100644 --- a/packages/houdini/src/codegen/transforms/list.ts +++ b/packages/houdini/src/codegen/transforms/list.ts @@ -184,7 +184,7 @@ export default async function addListFragments( } // we need to add a delete directive for every type that is the target of a list - const listTargets = [ + const validDeletes = [ ...new Set( Object.values(lists).map(({ type }) => { // only consider object types @@ -307,7 +307,7 @@ export default async function addListFragments( } ) as graphql.DefinitionNode[] ).concat( - ...listTargets.map((typeName) => ({ + ...validDeletes.map((typeName) => ({ kind: graphql.Kind.DIRECTIVE_DEFINITION, name: { kind: graphql.Kind.NAME,