fix: add null-guards to dialog close callbacks in savings, clients etc#3551
fix: add null-guards to dialog close callbacks in savings, clients etc#3551Manishnemade12 wants to merge 1 commit intoopenMF:devfrom
Conversation
…nd loans views to prevent runtime errors
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
Note
|
@IOhacker can you please merge this pr then |
|
Please open a Jira ticket for this one |
Description
This PR resolves a silent crash (
TypeError: Cannot read properties of undefined) that occurred when users dismissed confirmation dialogs across the Savings, Clients, and Loans modules by pressingEscapeor clicking the backdrop.When Angular Material's
MatDialogis dismissed without a direct action button,afterClosed()emitsundefined. Several components previously accessed.confirmor.deleteon this undefined response without checking it first, breaking the action cascade flow.Fix: Added a defensive
if (!response) { return; }guard at the top of 13afterClosed()callbacks acrosssavings-account-view.component.ts,clients-view.component.ts, andloans-view.component.ts.No external dependencies are required for this change.
Screenshots, if any
(Not applicable, silent console crash fixed)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at
web-app/.github/CONTRIBUTING.md.