Simplify computed propery
This commit is contained in:
parent
81bffccf01
commit
199e68ff29
1 changed files with 1 additions and 5 deletions
|
@ -564,11 +564,7 @@ class Importer extends Component
|
|||
#[Computed]
|
||||
public function activeFile()
|
||||
{
|
||||
if ($this->activeFileId) {
|
||||
return Import::find($this->activeFileId);
|
||||
}
|
||||
|
||||
return null;
|
||||
return Import::find($this->activeFileId);
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
Loading…
Add table
Reference in a new issue