Skip to content

Commit

Permalink
minor update.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
  • Loading branch information
Krishna2323 committed Oct 5, 2024
1 parent ec7fd1d commit 0bc1ada
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ function deleteWorkspaceCategories(policyID: string, categoryNamesToDelete: stri
acc[categoryName] = {
pendingAction: null,
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('workspace.categories.deleteFailureMessage'),
enabled: policyCategories?.[categoryName]?.enabled,
enabled: !!policyCategories?.[categoryName]?.enabled,
};
return acc;
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function deletePolicyTags(policyID: string, tagsToDelete: string[]) {
acc[tagName] = {
pendingAction: null,
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('workspace.tags.deleteFailureMessage'),
enabled: policyTag?.tags[tagName]?.enabled,
enabled: !!policyTag?.tags[tagName]?.enabled,
};
return acc;
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/TaxRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function deletePolicyTaxes(policyID: string, taxesToDelete: string[]) {
acc[taxID] = {
pendingAction: null,
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('workspace.taxes.error.deleteFailureMessage'),
isDisabled: policyTaxRates?.[taxID]?.isDisabled,
isDisabled: !!policyTaxRates?.[taxID]?.isDisabled,
};
return acc;
}, {}),
Expand Down

0 comments on commit 0bc1ada

Please sign in to comment.