fix: [Component:CRUD] Typo in merge conflict

pull/93/head
Sami Mokaddem 2022-02-23 08:18:08 +01:00
parent bd14d52571
commit bf3e31c59a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ class CRUDComponent extends Component
if (!empty($params['conditions'])) {
$query->where($params['conditions']);
}
$data = $data->first();
$data = $query->first();
if (isset($params['afterFind'])) {
$data = $params['afterFind']($data, $params);
}