We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de137b4 commit eed6061Copy full SHA for eed6061
includes/type/object/class-cart-type.php
@@ -177,13 +177,8 @@ public static function register_cart() {
177
'type' => array( 'list_of' => 'CartTax' ),
178
'description' => __( 'Cart total taxes itemized', 'wp-graphql-woocommerce' ),
179
'resolve' => function( $source ) {
180
- try {
181
- $taxes = $source->get_tax_totals();
182
- return ! empty( $taxes ) ? array_values( $taxes ) : null;
183
- } catch( \Exception $e ) {
184
- wp_send_json( $e->getMessage() );
185
- }
186
-
+ $taxes = $source->get_tax_totals();
+ return ! empty( $taxes ) ? array_values( $taxes ) : null;
187
},
188
),
189
'isEmpty' => array(
0 commit comments