fix project deletion 404 error (#208)

This commit is contained in:
Saeed Vaziry
2024-05-15 13:41:33 +02:00
committed by GitHub
parent de468ae1ba
commit e3ea8f975f
2 changed files with 8 additions and 7 deletions

View File

@ -55,9 +55,6 @@ public function delete(Project $project): RedirectResponse
/** @var User $user */
$user = auth()->user();
/** @var Project $project */
$project = $user->projects()->findOrFail($project->id);
try {
app(DeleteProject::class)->delete($user, $project);
} catch (ValidationException $e) {