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 12, 2024
1 parent e7a85c7 commit 4bd2573
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 4bd2573

Please sign in to comment.