fix: settings sync stats loading (v1.3.60)
- Fixed loadSyncStats() to correctly parse API response
- Customers API returns {customers: [...]} not array directly
- Added const data = await response.json() and data.customers
- Fixes sync stats counters showing NaN or incorrect values
This commit is contained in:
parent
4c2593b99c
commit
097f0633f5
@ -1374,7 +1374,8 @@ async function loadSyncStats() {
|
||||
try {
|
||||
const response = await fetch('/api/v1/customers?limit=10000');
|
||||
if (!response.ok) throw new Error('Failed to load customers');
|
||||
const customers = await response.json();
|
||||
const data = await response.json();
|
||||
const customers = data.customers || [];
|
||||
|
||||
const stats = {
|
||||
total: customers.length,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user