From d336a601962989027916aac32b1cd4647a80beb8 Mon Sep 17 00:00:00 2001 From: Cannonb4ll Date: Wed, 22 Feb 2023 13:32:50 +0100 Subject: [PATCH] fallback --- app/Filament/Pages/Settings.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Filament/Pages/Settings.php b/app/Filament/Pages/Settings.php index 277151a4..9e371301 100644 --- a/app/Filament/Pages/Settings.php +++ b/app/Filament/Pages/Settings.php @@ -217,7 +217,8 @@ protected function getFormSchema(): array TextInput::make('name')->label(function ($get) { return match ($get('type')) { 'email' => 'Name receiver', - 'discord', 'slack' => 'Label' + 'discord', 'slack' => 'Label', + null => 'Name receiver' // Fallback for previous roadmap users }; })->required(), TextInput::make('webhook') @@ -225,7 +226,8 @@ protected function getFormSchema(): array return match ($get('type')) { 'email' => 'E-mail', 'discord' => 'Discord webhook URL', - 'slack' => 'Slack webhook URL' + 'slack' => 'Slack webhook URL', + null => 'E-mail' // Fallback for previous roadmap users }; }) ->required()