-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug bash issue #659
bug bash issue #659
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].41-campaign/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].42-campaign/dist/index.css" /> | ||
<!-- added below css for hcm-workbench module inclusion--> | ||
|
||
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@egovernments/digit-ui-css", | ||
"version": "1.0.41-campaign", | ||
"version": "1.0.42-campaign", | ||
"license": "MIT", | ||
"main": "dist/index.css", | ||
"author": "Jagankumar <[email protected]>", | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,8 +1,8 @@ | ||||||||
export const useResourceData = async (data, hierarchyType, type, tenantId) => { | ||||||||
export const useResourceData = async (data, hierarchyType, type, tenantId, id) => { | ||||||||
let Type; | ||||||||
let Error = { | ||||||||
isError: false, | ||||||||
error: {} | ||||||||
error: {}, | ||||||||
}; | ||||||||
let response; | ||||||||
if (type === "facilityWithBoundary") { | ||||||||
|
@@ -22,7 +22,9 @@ export const useResourceData = async (data, hierarchyType, type, tenantId) => { | |||||||
tenantId: Digit.ULBService.getCurrentTenantId(), | ||||||||
fileStoreId: data?.[0]?.filestoreId, | ||||||||
action: "validate", | ||||||||
additionalDetails: {}, | ||||||||
additionalDetails: { | ||||||||
campaignId: id, | ||||||||
}, | ||||||||
}, | ||||||||
}, | ||||||||
}); | ||||||||
|
@@ -37,7 +39,7 @@ export const useResourceData = async (data, hierarchyType, type, tenantId) => { | |||||||
return Error; | ||||||||
} else { | ||||||||
Error = errorMessage; | ||||||||
Error.isError = true ; | ||||||||
Error.isError = true; | ||||||||
return Error; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure consistent error handling. Here, - Error = errorMessage;
+ Error.error = errorMessage; Committable suggestion
Suggested change
|
||||||||
} | ||||||||
} | ||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
<!-- added below css for hcm-workbench module inclusion--> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].41-campaign/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].42-campaign/dist/index.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#00bcd1" /> | ||
<title>DIGIT</title> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure error handling is robust. The error message transformation might cause issues if
temp.error
is undefined or not a string.Committable suggestion