Skip to content

Commit

Permalink
tweak variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Dec 16, 2022
1 parent 1f706f6 commit 136f570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/houdini/src/codegen/transforms/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -307,7 +307,7 @@ export default async function addListFragments(
}
) as graphql.DefinitionNode[]
).concat(
...listTargets.map<graphql.DirectiveDefinitionNode>((typeName) => ({
...validDeletes.map<graphql.DirectiveDefinitionNode>((typeName) => ({
kind: graphql.Kind.DIRECTIVE_DEFINITION,
name: {
kind: graphql.Kind.NAME,
Expand Down

0 comments on commit 136f570

Please sign in to comment.