Skip to content

Commit

Permalink
add support for partial response to boxview
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidbazzaz committed Jun 30, 2023
1 parent 3a348b0 commit 97a8eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/src/views/Box/BoxView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ function BTBox() {
const allData = useQuery<BoxByLabelIdentifierQuery, BoxByLabelIdentifierQueryVariables>(
BOX_BY_LABEL_IDENTIFIER_AND_ALL_SHIPMENTS_QUERY,
{
errorPolicy: "all",
variables: {
labelIdentifier,
},
Expand Down Expand Up @@ -210,7 +211,7 @@ function BTBox() {
updateNumberOfItemsMutationStatus.loading;

const error =
allData.error ||
(allData.error && allData?.data === undefined) ||
assignBoxToDistributionEventMutationStatus.error ||
unassignBoxFromDistributionEventMutationStatus.error;

Expand Down

0 comments on commit 97a8eeb

Please sign in to comment.