-
Notifications
You must be signed in to change notification settings - Fork 219
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
Error while adding #3
Comments
You might want to check out this or other samples how to retrieve current date/time: In my projects backend generates date and time. |
dialogRef.afterClosed().subscribe(result => { I made some delay, so that the object get from API set it. |
Does it works? |
Yes |
Use below code it's working!!! setTimeout(() => { |
ERROR TypeError: Cannot read property 'name' of undefined
at eval (user.component.ts:174)
at Array.filter ()
at MapSubscriber.eval [as project] (user.component.ts:172)
at MapSubscriber._next (map.js:79)
at MapSubscriber.Subscriber.next (Subscriber.js:92)
at MergeMapSubscriber.notifyNext (mergeMap.js:151)
at InnerSubscriber._next (InnerSubscriber.js:25)
at InnerSubscriber.Subscriber.next (Subscriber.js:92)
at BehaviorSubject.Subject.next (Subject.js:56)
at BehaviorSubject.next (BehaviorSubject.js:46)
This error occure when assigning the dialogData with the object which we got it from form.
this.dialogData = userObj;
if we put before post request in Service class it is working, But id and created_at and update_at are emty, In my case ID is auto increament and created_at and update_at are set to default value current date. So user wont supply it from the front end. Once the user object persisted in to the data base. These value id,created_at and update_dt are should assign to the front end list.
Please suggest how we can overcome this.
Thanks
Mohsin
The text was updated successfully, but these errors were encountered: