Created
October 5, 2018 19:22
-
-
Save alloy/b88ddc1fc8bee13d621670e5a0115ba5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Apps/Order/Routes/Shipping/index.tsx b/src/Apps/Order/Routes/Shipping/index.tsx | |
index 1567b825..b8e8d139 100644 | |
--- a/src/Apps/Order/Routes/Shipping/index.tsx | |
+++ b/src/Apps/Order/Routes/Shipping/index.tsx | |
@@ -109,21 +109,7 @@ export class ShippingRoute extends Component<ShippingProps, ShippingState> { | |
... on OrderWithMutationSuccess { | |
__typename | |
order { | |
- id | |
- state | |
- requestedFulfillment { | |
- __typename | |
- ... on Ship { | |
- name | |
- addressLine1 | |
- addressLine2 | |
- city | |
- region | |
- country | |
- postalCode | |
- phoneNumber | |
- } | |
- } | |
+ ...Shipping_orderDetails | |
} | |
} | |
... on OrderWithMutationFailure { | |
@@ -352,25 +338,31 @@ export class ShippingRoute extends Component<ShippingProps, ShippingState> { | |
} | |
} | |
+graphql` | |
+ fragment Shipping_orderDetails on Order { | |
+ id | |
+ state | |
+ requestedFulfillment { | |
+ __typename | |
+ ... on Ship { | |
+ name | |
+ addressLine1 | |
+ addressLine2 | |
+ city | |
+ region | |
+ country | |
+ postalCode | |
+ phoneNumber | |
+ } | |
+ } | |
+ } | |
+` | |
+ | |
export const ShippingFragmentContainer = createFragmentContainer( | |
ShippingRoute, | |
graphql` | |
fragment Shipping_order on Order { | |
- id | |
- state | |
- requestedFulfillment { | |
- __typename | |
- ... on Ship { | |
- name | |
- addressLine1 | |
- addressLine2 | |
- city | |
- region | |
- country | |
- postalCode | |
- phoneNumber | |
- } | |
- } | |
+ ...Shipping_orderDetails @relay(mask: false) | |
lineItems { | |
edges { | |
node { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment