udp-react-enterprise-component-library 25.18.1-beta.61 → 25.18.1-beta.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1466,9 +1466,10 @@ const EditTransaction = (props) => {
1466
1466
  const getAttachments = useCallback(async () => {
1467
1467
  try {
1468
1468
  setTransactionAttachments((await fetchTransactionAttachments()).data.pageList);
1469
+ refetchTransaction();
1469
1470
  } catch (error) {
1470
1471
  console.error("Failed to fetch attachments:", error);
1471
- enqueueSnackbar("Attachment fetch failed: We encountered a system error. Please try again or contact support if the issue persists.", {
1472
+ if (error?.message !== "canceled") enqueueSnackbar("Attachment fetch failed: We encountered a system error. Please try again or contact support if the issue persists.", {
1472
1473
  variant: "error",
1473
1474
  anchorOrigin: {
1474
1475
  vertical: "top",
@@ -1476,7 +1477,11 @@ const EditTransaction = (props) => {
1476
1477
  }
1477
1478
  });
1478
1479
  }
1479
- }, [fetchTransactionAttachments, enqueueSnackbar]);
1480
+ }, [
1481
+ fetchTransactionAttachments,
1482
+ enqueueSnackbar,
1483
+ refetchTransaction
1484
+ ]);
1480
1485
  const tabNames = [
1481
1486
  t("Details"),
1482
1487
  t("History"),
@@ -2124,4 +2129,4 @@ var UdpTransactionsPage_exports = /* @__PURE__ */ __exportAll({ default: () => U
2124
2129
 
2125
2130
  //#endregion
2126
2131
  export { UdpTransactionsPage_default as n, UdpTransactionsPage_exports as t };
2127
- //# sourceMappingURL=UdpTransactionsPage-DAwJtt76.js.map
2132
+ //# sourceMappingURL=UdpTransactionsPage-CSxXRP0C.js.map