Skip to content

Commit 7b5d0f7

Browse files
committed
- update get_parent_graphql_type_name to reduce unnecessary recursion
1 parent ca9adbb commit 7b5d0f7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/FieldConfig.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ public function get_parent_graphql_type_name( array $acf_field, ?string $prepend
105105
} elseif ( ! empty( $parent_group ) ) {
106106
$type_name = $this->registry->get_field_group_graphql_type_name( $parent_group );
107107
$type_name = $this->get_parent_graphql_type_name( $parent_group, $type_name );
108-
} else {
109-
$type_name = '';
110108
}
111109
}
112110

0 commit comments

Comments
 (0)