Skip to content

Commit

Permalink
Some handlings (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Dec 5, 2024
1 parent 2baaf32 commit 81c1c5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ const UploadDataCustom = React.memo(({ formData, onSelect, ...props }) => {
},
onError: (error, result) => {
const errorCode = error?.response?.data?.Errors?.[0]?.code;
if (errorCode == "NativeIoException") {
if (errorCode == "NativeIoException" || errorCode == "ZuulRuntimeException") {
setDownloadError(true);
setDownloadTemplateLoader(false);
setShowToast({ key: "info", label: t("HCM_PLEASE_WAIT_TRY_IN_SOME_TIME") });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const UserUpload = React.memo(() => {
},
onError: (error, result) => {
const errorCode = error?.response?.data?.Errors?.[0]?.code;
if (errorCode == "NativeIoException") {
if (errorCode == "NativeIoException" || errorCode == "ZuulRuntimeException") {
setDownloadError(true);
setDownloadTemplateLoader(false);
setShowToast({ key: "info", label: t("HCM_PLEASE_WAIT_TRY_IN_SOME_TIME") });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UserDownload = () => {
enabled: true,
select: data => {
const ResourceDetails = data?.ResourceDetails || [];
const filteredData = ResourceDetails.filter(item => item?.action === "create" && item?.additionalDetails?.source == "microplan");
const filteredData = ResourceDetails.filter(item => item?.action === "create" && (item?.additionalDetails?.source === "microplan" || item?.campaignId === "microplan"));
data.ResourceDetails = filteredData;
return data;
}
Expand Down

0 comments on commit 81c1c5c

Please sign in to comment.