Fix 500 if update url is blank

This commit is contained in:
notCharles 2024-07-20 18:51:38 -04:00
parent acf43f2826
commit 8662806dfd

View File

@ -251,7 +251,7 @@ class EditEgg extends EditRecord
->schema([ ->schema([
TextInput::make('url') TextInput::make('url')
->label('URL') ->label('URL')
->default(fn (Egg $egg): string => $egg->update_url) ->default(fn (Egg $egg): ?string => $egg->update_url)
->hint('Link to the egg file (eg. minecraft.json)') ->hint('Link to the egg file (eg. minecraft.json)')
->url(), ->url(),
]), ]),