-
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 after edit or add #1
Comments
So If I get this right, your dataServices works fine, DB query passes but you have a problem with the frontend update? Does delete work? Well, looking at your error you have an issue with the ID. My best guess is that you're not passing ID correctly from dialog. Try assigning constant value to the ID and observe results. |
Do you have solution for this please? i have the same error |
Same thing I wrote above. Please check your ID. |
Check this.... This is working like Pro!!! After searching a lot, finally found this fix. |
Right after when we update or add new item, it gives error "
Cannot read property 'id' of undefined
at eval (masters.designationcrud.component.ts:187)
at Array.filter ()
at MapSubscriber.eval [as project] (masters.designationcrud.component.ts:184)
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)
"
code line-
return Observable.merge(...displaydataChangeDesignation).map(() => {
//Filter data
this.filteredData = this._exampleDatabase.dataDesignation.slice().filter((designation: IDesignation) => {
const searchStr = (designation.id + designation.designationName ).toString().toLowerCase();// this line gives error
return searchStr.indexOf(this.filter.toLowerCase()) !== -1;
});
The text was updated successfully, but these errors were encountered: