Skip to content
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

Duplicate id in store #6

Open
simonschaufi opened this issue Feb 6, 2020 · 0 comments
Open

Duplicate id in store #6

simonschaufi opened this issue Feb 6, 2020 · 0 comments

Comments

@simonschaufi
Copy link

simonschaufi commented Feb 6, 2020

Hi @drehimself
I found an issue with the ids in the store as I have 5 records in the database starting from id 1. Now If I add several more items, the next items will have a manually generated id which will result in the following error:

[Vue warn]: Duplicate keys detected: '4'. This may cause an update error.

The reason for this is that you start with a hard coded id here:


How can this be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant