+
);
@@ -56,7 +56,7 @@ const DeliverChallanList = ({ purchaseId }) => {
{item.attachment?.preSignedUrl && (
-
+
)}
diff --git a/src/components/purchase/DeliveryChallane.jsx b/src/components/purchase/DeliveryChallane.jsx
index 834f049d..d3448977 100644
--- a/src/components/purchase/DeliveryChallane.jsx
+++ b/src/components/purchase/DeliveryChallane.jsx
@@ -21,9 +21,11 @@ import SingleFileUploader from "../common/SigleFileUploader";
import { localToUtc } from "../../utils/appUtils";
import WarningBlock from "../InfoBlock/WarningBlock";
import { FILE_UPLOAD_INFO } from "../../utils/staticContent";
+import { usePurchaseContext } from "../../pages/purchase/PurchasePage";
const DeliveryChallane = ({ purchaseId }) => {
const [file, setFile] = useState(null);
+ const {setDocumentView} = usePurchaseContext()
const {
register,
@@ -174,14 +176,16 @@ const DeliveryChallane = ({ purchaseId }) => {
/>