Refactor BackupEdit component to handle null s3_storage_id
This commit is contained in:
parent
ed9b63520d
commit
b0b7842f9c
@ -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';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user