Closed ap1969 closed 7 years ago
Hello,
As explained in the README, the GitHub issue tracker is for bugs and enhancement requests.
So I close this issue, but feel free to write a question on StackOverflow with the tag ng-admin
.
Thanks for using ng-admin!
Hi,
I need some help resolving the above error, as it's got me stumped.
The background is: the database contains a list of clients, and a list of notifications each client has received. Each notification has a client_id field which contains the ID of the client that received it. All records have got unique IDs in the _id field for that entity.
Here are the relevant sections of the configs:
I'm getting the error in the client.showView() page. The client ID/Email/Role are shown, and below them, the table is laid out for the notifications which have been sent to that client. But the table is empty and I'm getting the ngrepeat error noted above.
The full error starts with:
Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: entry in entries track by entry.identifierValue, Duplicate key: undefined, Duplicate value: {"_entityName":"notifications","values":{"_id":"589b981291d3a53a9d0fa56b",......
But there are no "undefined" _id fields, so I'm not sure where the undefined is coming from.
I don't think this fits the referenced_list or reference approach, and there is definitely no embedding of the related docs.
Can anyone point in the right direction to get the notifications listed, please?
Thanks in advance, Andy