Skip to content

Commit

Permalink
fix: refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gca-axelor committed Dec 17, 2024
1 parent c545261 commit a4fbcd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/apps/purchase/src/screens/RequestDetailsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const RequestDetailsView = ({route}) => {
dispatch(
(searchPurchaseRequestLine as any)({purchaseRequestId: idRequest}),
);
});
}, [dispatch, idRequest]);

return (
<Screen removeSpaceOnTop={true}>
Expand All @@ -60,7 +60,9 @@ const RequestDetailsView = ({route}) => {
data={purchaseRequest.description}
/>
<RequestDropdownCards />
<PurchaseSeeLinesButton numberLines={totalPurchaseRequestLine} />
{totalPurchaseRequestLine > 0 && (
<PurchaseSeeLinesButton numberLines={totalPurchaseRequestLine} />
)}
</Screen>
);
};
Expand Down

0 comments on commit a4fbcd4

Please sign in to comment.