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:
Christian 2025-12-23 15:50:20 +01:00
parent 4c2593b99c
commit 097f0633f5
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
1.3.59
1.3.60

View File

@ -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,