Skip to content

Commit

Permalink
fix: resolves #996
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jan 15, 2024
1 parent 12a1363 commit 4471c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function destroy(Request $request, StatefulGuard $guard, Project $project
]);
}

if ($project->status = 'processing' || $project->status = 'queued') {
if ($project->status == 'processing' || $project->status == 'queued') {
return redirect()->route('dashboard')->with('error', 'It is not possible to delete a project that is currently being processed or queued.');
} else {
$creator->delete($project);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/Samples.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div v-if="!loading && studies">
<div v-if="studies.length == 0">
<div v-if="studies.length > 0">
<div
class="mt-8 mx-auto max-w-md grid gap-8 sm:max-w-lg lg:grid-cols-3 lg:max-w-7xl"
>
Expand Down

0 comments on commit 4471c3b

Please sign in to comment.