updated customer and category added in first in dropdown list

This commit is contained in:
asift798
2022-02-02 18:57:38 +05:30
parent 1d402e0143
commit c6b36d78b9
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ async function searchCustomers(search) {
let checkCustomerExist = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
if(!checkCustomerExist) {
let edit_customer = Object.assign({}, customerStore.editCustomer)
res.data.data.push(edit_customer)
res.data.data.unshift(edit_customer)
}
}