Skip to content

A free open source IT asset/license management system

Add more details

Marcus Mooreb4ed01243bba
diff --git a/app/Livewire/Importer.php b/app/Livewire/Importer.php
index 460460cd2d..49884dc6dd 100644
--- a/app/Livewire/Importer.php
+++ b/app/Livewire/Importer.php
@@ -528,7 +528,9 @@ 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
+ // @todo: next up...handle the file being missing for other interactions...
+ // for example having an import open in two tabs, deleting it, and then changing
+ // the import type in the other tab. The error message below wouldn't display in that case.
if (!$import) {
// @todo: improve error message
$this->message = trans('admin/hardware/message.import.file_delete_error');