window.customers = customers;
This commit is contained in:
parent
9a9cabdec6
commit
a0555eddd4
|
|
@ -13,6 +13,8 @@ export async function loadCustomers() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/api/customers');
|
const response = await fetch('/api/customers');
|
||||||
customers = await response.json();
|
customers = await response.json();
|
||||||
|
// Backward compat: quote/invoice modals use global 'customers' variable
|
||||||
|
window.customers = customers;
|
||||||
renderCustomerView();
|
renderCustomerView();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading customers:', error);
|
console.error('Error loading customers:', error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue