mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Merge branch 'fix_all_customer_load'
This commit is contained in:
@ -83,8 +83,8 @@ async function searchCustomers(search) {
|
||||
|
||||
let res = await customerStore.fetchCustomers(data)
|
||||
if(res.data.data.length>0 && customerStore.editCustomer) {
|
||||
let checkCustomerExist = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
|
||||
if(!checkCustomerExist) {
|
||||
let customerFound = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
|
||||
if(!customerFound) {
|
||||
let edit_customer = Object.assign({}, customerStore.editCustomer)
|
||||
res.data.data.unshift(edit_customer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user