Error in displaying dateOfBirth attribute in the client section for some clients.
See original GitHub issueDescription
In the Clients section, when you open some of the clients like Susan Wanjiru
, test verify
, Pauline Wambui Chege
etc. the app throws ERROR TypeError: Cannot read property 'reverse' of undefined
error in browser console as these clients don’t have their dateOfBirth stored in the database.
Steps to Reproduce
Open the Clients section in the Institution
tab and then open the client Susan Wanjiru
or test verify
or Pauline Wambui Chege
etc., then open the browser developer tools console using Control + Shift + I
. You’ll see the error there.
Cause of Error
This line this.clientInfo.dateOfBirth = this.clientInfo.dateOfBirth.reverse().join('-');
in view-client.component.ts
should have a check whether the property dateOfBirth
exists or not.
Settings
- Mifos X version: 0.0.0-dev
- Browser used: Google Chrome
Screenshots, if any
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
org.hibernate.hql.internal.ast.QuerySyntaxException: table is ...
Select c from Customer c this is fine query as Customer is you class name and we should write class name in the...
Read more >User profile attributes in Azure Active Directory B2C
Learn about the user resource type attributes that are supported by the Azure AD B2C directory user profile. Find out about built-in ...
Read more >Sabre Profiles Error Messages Guide
If any of these instances occur, a SOAP fault message displays with the following data: <faultcode>soap-env:Client.
Read more >Customer Information Parameters - Conversions API
The customer information parameters are a set of user identifiers you share ... customer information parameters through the Meta Pixel, though some (e.g., ......
Read more >Form Validation with PHP - SitePoint
If one or more fields are empty, the form will be displayed again. This time, however, the empty fields will be have the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Part of https://github.com/openMF/web-app/issues/213. As specified in the wiki any kind of date should just be displayed for now without formatting: https://github.com/openMF/web-app/wiki/Date-and-Language till the implementation is finalized.
Clients section has been revamped