Refactor BackupEdit component to handle null s3_storage_id

This commit is contained in:
Andras Bacsai 2024-05-17 13:43:21 +02:00
parent ed9b63520d
commit b0b7842f9c

View File

@ -35,7 +35,7 @@ class BackupEdit extends Component
public function mount()
{
$this->parameters = get_route_parameters();
if (is_null($this->backup->s3_storage_id)) {
if (is_null(data_get($this->backup, 's3_storage_id'))) {
$this->backup->s3_storage_id = 'default';
}
}