diff --git a/wwwroot/js/vehicle.js b/wwwroot/js/vehicle.js index 3a52b29..d413ec6 100644 --- a/wwwroot/js/vehicle.js +++ b/wwwroot/js/vehicle.js @@ -216,7 +216,7 @@ function getVehicleHaveImportantReminders(vehicleId) { } function deleteFileFromUploadedFiles(fileLocation, event) { - event.parentElement.remove(); + event.parentElement.parentElement.parentElement.remove(); uploadedFiles = uploadedFiles.filter(x => x.location != fileLocation); } function editFileName(fileLocation, event) {