mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
fix: company save loader on duplicate name error
This commit is contained in:
@ -211,6 +211,7 @@ async function submitCompanyData() {
|
||||
}
|
||||
|
||||
isSaving.value = true
|
||||
try {
|
||||
const res = await companyStore.addNewCompany(newCompanyForm)
|
||||
if (res.data.data) {
|
||||
await companyStore.setSelectedCompany(res.data.data)
|
||||
@ -232,6 +233,9 @@ async function submitCompanyData() {
|
||||
closeCompanyModal()
|
||||
}
|
||||
isSaving.value = false
|
||||
} catch {
|
||||
isSaving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function resetNewCompanyForm() {
|
||||
|
||||
Reference in New Issue
Block a user