Skip to content

Commit

Permalink
Fixed: typo in package file and reverted some unwanted changes(#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Nov 29, 2024
1 parent 8d7aea9 commit 83cef8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"description": "An Ionic project",
"scripts": {
"devDerve": "vue-cli-service serve --mode=development",
"devServe": "vue-cli-service serve --mode=development",
"prodServe": "vue-cli-service serve --mode=production",
"prodBuild": "vue-cli-service build --mode=production",
"devBuild": "vue-cli-service build --mode=development",
Expand Down
3 changes: 1 addition & 2 deletions src/store/modules/rejection/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ const actions: ActionTree<RejectionState, RootState> = {
}
const resp = await UtilService.fetchRejectReasons(payload)

if (!hasError(resp)) {
if (!hasError(resp) && resp.data.count > 0) {
const reasonCountDetail = usedReasons.reduce((reasonDetail: any, reason: any) => {
reasonDetail[reason.val.trim().toUpperCase()] = reason;
return reasonDetail;
}, {});

usedRejectionReasons = resp.data.docs
usedRejectionReasons.map((rejectionReason: any) => {
rejectionReason.count = reasonCountDetail[rejectionReason.enumId]?.count
Expand Down

0 comments on commit 83cef8a

Please sign in to comment.