add dropdown delete button.

This commit is contained in:
Cüneyt Şentürk
2022-08-05 19:04:38 +03:00
parent d02ab42636
commit 0c7afa7460
2 changed files with 11 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ class UpdateTransaction extends Job implements ShouldUpdate
$this->model->attachMedia($media, 'attachment');
}
} elseif (!$this->request->file('attachment') && $this->model->attachment) {
} elseif (! $this->request->file('attachment') && $this->model->attachment) {
$this->deleteMediaModel($this->model, 'attachment', $this->request);
}