Refactor BackupEdit component to handle null s3_storage_id
This commit is contained in:
parent
ed9b63520d
commit
b0b7842f9c
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class BackupEdit extends Component
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->parameters = get_route_parameters();
|
$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';
|
$this->backup->s3_storage_id = 'default';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue