Skip to content

Commit

Permalink
Merge pull request #15 from sequra/B/LIS-15
Browse files Browse the repository at this point in the history
Don't fail if no order in the list
  • Loading branch information
m1k3lm authored Mar 24, 2024
2 parents 2d543d5 + 6fc2d42 commit aea429a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Ui/Component/Listing/Column/SequraOrderLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public function prepareDataSource(array $dataSource): array
$shopOrderReferences[] = $item['increment_id'];
}
}

if (empty($shopOrderReferences)) {
return $dataSource;
}
$orders = $this->getOrderService()->getOrderBatchForShopReferences($shopOrderReferences);
$referenceMap = $this->createReferenceMap($orders);

Expand Down

0 comments on commit aea429a

Please sign in to comment.