fix: check for !res.error instead of res.success when handling API responses.
This commit is contained in:
@@ -557,7 +557,7 @@
|
||||
`/v1/a76/invoice-settings/${InvoiceTopFieldsFormData.invoice_type}?operation_type=${InvoiceTopFieldsFormData.operation_type}&company_id=${companyStore.activeCompany.id}`
|
||||
);
|
||||
|
||||
if (res.success && res.data) {
|
||||
if (!res.error && res.data) {
|
||||
const settings = res.data.settings || {};
|
||||
|
||||
// Mark as loaded even if empty to prevent retries for the same combination
|
||||
|
||||
Reference in New Issue
Block a user