javascript – How to fix flattenChildren (…): I found two children with the same password even though I'm using unique keys?

I have a cloning function that clones an image and I add it to the image matrix, and I want to send those images to the Image component, but I get an error saying flattenChildren (…): I found two children with the same key although I make sure that the key is unique.

this is the function of cloning and I am changing the title for each new image that I add to the matrix:

cloneFunc (data) {
data.title = this.num.toString () + data.title;
this.num ++;
this.setState ({images: [...this.state.images,data]});
}

and here where I map through the matrix

render () {
he came back (
      
{this.state.images.map (dto => { he came back ; })}
); }