Skip to content

Commit

Permalink
fix: ProductAttributeEnum no longer registered if no attribute exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Oct 31, 2023
1 parent 63a2727 commit 5f2fc28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/type/enum/class-product-attribute-enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public static function register() {
}
}

if ( empty( $taxonomy_values ) ) {
return;
}

register_graphql_enum_type(
'ProductAttributeEnum',
[
Expand Down

0 comments on commit 5f2fc28

Please sign in to comment.