MicroDroid / vue-materialize-datatable

A fancy Materialize CSS datatable VueJS component.
https://overcoder.dev/vue-materialize-datatable
MIT License
179 stars 67 forks source link

Duplicate keys detected: '0'. This may cause an update error #35

Closed marteoma closed 5 years ago

marteoma commented 6 years ago

image

That is my component, it render well, but sometimes doesn't load, and I get these errors repeatly: image What must be done to fix that.

MicroDroid commented 6 years ago

This has to do with the data you're providing. You do have duplicate keys in your data or it doesn't work with datatable in some way. Please send a console.log of columns and data in order to help you any further.

marteoma commented 6 years ago

image

These are the two props

MicroDroid commented 5 years ago

@marteoma data must be an array of objects, not an object itself.

marteoma commented 5 years ago

Sorry, but that's not the mistake, I was passing an array, just forgot to use it this time.

ermand commented 5 years ago

@MicroDroid I am having the same error for the following columns and data

image

MicroDroid commented 5 years ago

Can you please post a complete example so I can rerpoduce it locally here?

On Sun, Nov 25, 2018, 22:46 Ermand Durro <notifications@github.com wrote:

@MicroDroid https://github.com/MicroDroid I am having the same error for the following columns and data

[image: image] https://user-images.githubusercontent.com/2822729/48984410-885c2d80-f0fb-11e8-85d1-b99340014db3.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicroDroid/vue-materialize-datatable/issues/35#issuecomment-441471731, or mute the thread https://github.com/notifications/unsubscribe-auth/AIINf9edicyjJUxCWLyEteBFfRvvJoTvks5uywGegaJpZM4WmVsK .

ermand commented 5 years ago

@MicroDroid please check my repo: https://github.com/ermand/vue-materialize-datatable-testing

Thanks in advance :)

MicroDroid commented 5 years ago

Thanks a lot for creating the repository, I will check it out as soon as possible and get back to you

On Mon, Nov 26, 2018, 17:36 Ermand Durro <notifications@github.com wrote:

@MicroDroid https://github.com/MicroDroid please check my repo: https://github.com/ermand/vue-materialize-datatable-testing

Thanks in advance :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicroDroid/vue-materialize-datatable/issues/35#issuecomment-441682299, or mute the thread https://github.com/notifications/unsubscribe-auth/AIINf_Q3U-pg7r4tyYLsbI47wi1uvpsJks5uzAqOgaJpZM4WmVsK .

adi-darachi commented 5 years ago

Is this going to be merged?