Simplify computed propery
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user