Skip to content

Commit

Permalink
fix query optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Feb 24, 2022
1 parent 8173c9a commit 958959a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HasFiles.php
Expand Up @@ -86,7 +86,7 @@ public function _getFileAttribute($key)
} else {
$file = $this->files();

if (isset($this->filesOptions) && isset($this->filesOptions[$key]) && $this->filesOptions[$key]['thumbnail'])
if (isset($this->filesOptions) && isset($this->filesOptions[$key]) && isset($this->filesOptions[$key]['thumbnail']))
$file = $file->with('file.thumbnail');
}

Expand Down

0 comments on commit 958959a

Please sign in to comment.