Simplify logic

This commit is contained in:
Lance Pioch 2024-06-02 01:27:04 -04:00
parent 9c81c0ce18
commit f480a271b3

View File

@ -320,9 +320,7 @@ class CreateServer extends CreateRecord
->hidden(fn (Forms\Get $get) => $this->egg),
Forms\Components\Placeholder::make('The selected egg has no variables!')
->hidden(fn (Forms\Get $get) => !$this->egg ||
$this->egg->variables()?->count()
),
->hidden(fn (Forms\Get $get) => $this->egg?->variables()?->count() !== 0),
Forms\Components\Repeater::make('server_variables')
->relationship('serverVariables')