window.customers = customers;

This commit is contained in:
Andreas Knuth 2026-02-23 15:07:09 -06:00
parent 9a9cabdec6
commit a0555eddd4
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ export async function loadCustomers() {
try {
const response = await fetch('/api/customers');
customers = await response.json();
// Backward compat: quote/invoice modals use global 'customers' variable
window.customers = customers;
renderCustomerView();
} catch (error) {
console.error('Error loading customers:', error);