fix: null notify

This commit is contained in:
Andras Bacsai
2023-12-13 12:01:27 +01:00
parent d93bf97919
commit 2dc175be63
10 changed files with 15 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ class DiscordSettings extends Component
public function sendTestNotification()
{
$this->team->notify(new Test());
$this->team?->notify(new Test());
$this->dispatch('success', 'Test notification sent.');
}
}

View File

@@ -70,7 +70,7 @@ class EmailSettings extends Component
}
public function sendTestNotification()
{
$this->team->notify(new Test($this->emails));
$this->team?->notify(new Test($this->emails));
$this->dispatch('success', 'Test Email sent successfully.');
}
public function instantSaveInstance()

View File

@@ -58,7 +58,7 @@ class TelegramSettings extends Component
public function sendTestNotification()
{
$this->team->notify(new Test());
$this->team?->notify(new Test());
$this->dispatch('success', 'Test notification sent.');
}
}

View File

@@ -106,7 +106,7 @@ class Email extends Component
public function sendTestNotification()
{
$this->settings->notify(new Test($this->emails));
$this->settings?->notify(new Test($this->emails));
$this->dispatch('success', 'Test email sent.');
}
}