This commit is contained in:
notCharles
2026-01-31 17:45:28 -05:00
parent adb0f1202a
commit bb4d55c651

View File

@@ -46,10 +46,10 @@ class ImportServerConfigAction extends Action
Select::make('node_id')
->label(trans('admin/server.import_export.node_select'))
->hint(trans('admin/server.import_export.node_select_hint'))
->options(fn () => user()->accessibleNodes()->pluck('name', 'id') ?? [])
->options(fn () => user()?->accessibleNodes()->pluck('name', 'id') ?? [])
->searchable()
->required()
->visible(fn () => (user()->accessibleNodes()->count() ?? 0) > 1),
->visible(fn () => (user()?->accessibleNodes()->count() ?? 0) > 1),
]);
$this->action(function (ServerConfigCreatorService $createService, array $data): void {