From 3772a21a517c9805929f66e38122cbe7bf6f06f8 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 17 Jul 2024 13:37:24 -0700 Subject: [PATCH] Move comment up --- app/Livewire/Importer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Livewire/Importer.php b/app/Livewire/Importer.php index 1d2bd1fdb1..460460cd2d 100644 --- a/app/Livewire/Importer.php +++ b/app/Livewire/Importer.php @@ -528,6 +528,7 @@ class Importer extends Component $import = Import::find($id); // Check that the import wasn't deleted after while page was already loaded... + // @todo: next up...handle the file being missing for other interactions...for example switching the import type if (!$import) { // @todo: improve error message $this->message = trans('admin/hardware/message.import.file_delete_error'); @@ -536,8 +537,6 @@ class Importer extends Component return; } - // @todo: next up...handle the file being missing for other interactions... - if (Storage::delete('private_uploads/imports/' . $import->file_path)) { $import->delete(); $this->message = trans('admin/hardware/message.import.file_delete_success');