This commit is contained in:
Lucàs
2023-04-02 23:50:50 +02:00
4 changed files with 169 additions and 145 deletions
+1 -3
View File
@@ -77,11 +77,9 @@ export default function ModalModifyImages(props) {
if (index > -1) {
newListImage.splice(index, 1);
setlistImage(newListImage);
setlistImage([...newListImage]);
}
// setlistImage(listImage.filter((image) => image !== fileName));
const imageDeleteOptions = {
method: "DELETE",
body: JSON.stringify({ fileName: fileName.split("/").pop() }),