Skip to content

Commit

Permalink
fix: Bug fixed in Product_Connection_Resolver::add_tax_query
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Nov 30, 2023
1 parent d3b3f93 commit 924d878
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ public function add_meta_query( $value ) {
* @return \WPGraphQL\WooCommerce\Data\Connection\Product_Connection_Resolver
*/
public function add_tax_query( $value ) {
if ( ! empty( $this->query_args['tax_query'] ) ) {
if ( empty( $this->query_args['tax_query'] ) ) {
$this->query_args['tax_query'] = $value; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query
} else {
$this->query_args['tax_query'][] = $value;
Expand Down

0 comments on commit 924d878

Please sign in to comment.