Fixing index bug when there are DefaultImages
When the component there is defaultImage it is stored in state.pictures but not in state.files since it has no file. The problem is when I upload a image and before submit it I decide to remove it. The removeImage function get it's index from the state.pictures, which going to be 1, but the file is stored in the position 0 of state.files.
To fix it I created empty objects when there are default images to keep both array with the same size and index consistency. To finish up I built a filter before send the files up to the parent component, since undefined objects are not useful there.
Is this project officially dead or can we get this merged? If dead is there a fork on NPM we can use instead?
How to fix the issue of not previewing the new uploaded image? When uploading i'm still getting the same defaultImage prop
Is this fixed?i'm also getting previous default image after upload new image