fix: Fix variables not being saved in database when executing a script (#518)

This commit is contained in:
Dimitar Yanakiev 2025-03-01 00:26:18 +02:00 committed by GitHub
parent b2440586d6
commit 176ff3bbc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ protected function getHeaderActions(): array
];
foreach ($this->script->getVariables() as $variable) {
$form[] = TextInput::make($variable)
$form[] = TextInput::make('variables.'.$variable)
->label($variable)
->rules(fn (Get $get) => ExecuteScript::rules($get())['variables.*']);
}