Skip to content

Commit

Permalink
Merge pull request #818 from binaryseed/fix-tests
Browse files Browse the repository at this point in the history
Fix issue with sub_triggers
  • Loading branch information
benwilson512 committed Dec 7, 2019
2 parents ed2a6da + b0a09c6 commit 9d6cb0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/absinthe/phase/schema/register_triggers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ defmodule Absinthe.Phase.Schema.RegisterTriggers do
update_fields(mutation_object, fn mut_field ->
triggers =
for sub_field <- sub_fields,
sub_triggers = %{} <- Absinthe.Type.function(sub_field, :triggers),
sub_triggers = Absinthe.Type.function(sub_field, :triggers),
is_map(sub_triggers),
Map.has_key?(sub_triggers, mut_field.identifier),
do: sub_field.identifier

Expand Down

0 comments on commit 9d6cb0e

Please sign in to comment.