fix: fix faulty relationship query preventing form deletion

Fixes #12.

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
2022-10-22 00:19:17 +01:00
parent 1b7c144497
commit 73a674096a
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ class FormManagementService
$deletable = true;
if (! is_null($form) && ! is_null($form->vacancies) && $form->vacancies->count() !== 0 || ! is_null($form->responses)) {
if (! is_null($form->vacancies) && $form->vacancies->count() !== 0 || ! is_null($form->responses)) {
$deletable = false;
}