Skip to content
Snippets Groups Projects
Commit 4b46242c authored by Pierre Ecarlat's avatar Pierre Ecarlat
Browse files

Removed duplicated bullhorn in pop-ups imagepicker

parent 0bfe5f44
No related branches found
No related tags found
1 merge request!141Release 2024-02-29
Pipeline #94072 passed
......@@ -29,7 +29,7 @@ const ImagePicker: React.FC<ImagePickerProps> = ({
if (defaultIcon && imagesNames) {
const indexOfDefault = imagesNames.indexOf(defaultIcon)
if (indexOfDefault > 0) {
imagesNames.slice(indexOfDefault, 1)
imagesNames.splice(indexOfDefault, 1)
imagesNames.unshift(defaultIcon)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment