diff --git a/Views/Vehicle/_GasModal.cshtml b/Views/Vehicle/_GasModal.cshtml
index 858f7db..dfe3c2a 100644
--- a/Views/Vehicle/_GasModal.cshtml
+++ b/Views/Vehicle/_GasModal.cshtml
@@ -44,14 +44,7 @@
@if (Model.GasRecord.Files.Any())
{
-
- @foreach (UploadedFiles filesUploaded in Model.GasRecord.Files)
- {
-
- }
+ @await Html.PartialAsync("_UploadedFiles", Model.GasRecord.Files)
diff --git a/wwwroot/js/gasrecord.js b/wwwroot/js/gasrecord.js
index 406cf7f..9e61b87 100644
--- a/wwwroot/js/gasrecord.js
+++ b/wwwroot/js/gasrecord.js
@@ -116,8 +116,4 @@ function getAndValidateGasRecordValues() {
files: uploadedFiles,
isFillToFull: gasIsFillToFull
}
-}
-function deleteGasRecordFile(fileLocation, event) {
- event.parentElement.remove();
- uploadedFiles = uploadedFiles.filter(x => x.location != fileLocation);
}
\ No newline at end of file