Fixed edit form account component duplicate item issue..

This commit is contained in:
Cüneyt Şentürk 2023-12-18 10:29:27 +03:00
parent f5429bce4d
commit 0c3c4087f7
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class Account extends Form
$selected_account = $model->account;
}
if (! empty($selected_account) && ! $this->accounts->has($selected_account->id)) {
if (! empty($selected_account) && ! $this->accounts->contains('id', $selected_account->id)) {
$this->accounts->push($selected_account);
}