mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
[Create Server] Fix 500 when changing egg
When changing from one egg to nothing, a 500 is displayed due to it expecting startup to have a value
This commit is contained in:
parent
6692942f6f
commit
c431775b7e
@ -300,7 +300,7 @@ class CreateServer extends CreateRecord
|
|||||||
->live()
|
->live()
|
||||||
->afterStateUpdated(function ($state, Forms\Set $set, Forms\Get $get, $old) {
|
->afterStateUpdated(function ($state, Forms\Set $set, Forms\Get $get, $old) {
|
||||||
$egg = Egg::query()->find($state);
|
$egg = Egg::query()->find($state);
|
||||||
$set('startup', $egg->startup);
|
$set('startup', $egg->startup ?? '');
|
||||||
$set('image', '');
|
$set('image', '');
|
||||||
|
|
||||||
$variables = $egg->variables ?? [];
|
$variables = $egg->variables ?? [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user