diff --git a/packages/apps/purchase/src/screens/RequestDetailsView.tsx b/packages/apps/purchase/src/screens/RequestDetailsView.tsx index a8c73259c..5428b42ab 100644 --- a/packages/apps/purchase/src/screens/RequestDetailsView.tsx +++ b/packages/apps/purchase/src/screens/RequestDetailsView.tsx @@ -47,7 +47,7 @@ const RequestDetailsView = ({route}) => { dispatch( (searchPurchaseRequestLine as any)({purchaseRequestId: idRequest}), ); - }); + }, [dispatch, idRequest]); return ( @@ -60,7 +60,9 @@ const RequestDetailsView = ({route}) => { data={purchaseRequest.description} /> - + {totalPurchaseRequestLine > 0 && ( + + )} ); };