From 097f0633f5edc002fa14675a88a6f0d72149a384 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 23 Dec 2025 15:50:20 +0100 Subject: [PATCH] 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 --- VERSION | 2 +- app/settings/frontend/settings.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 94f8697..0629a74 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.59 \ No newline at end of file +1.3.60 \ No newline at end of file diff --git a/app/settings/frontend/settings.html b/app/settings/frontend/settings.html index 30a7493..e462168 100644 --- a/app/settings/frontend/settings.html +++ b/app/settings/frontend/settings.html @@ -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,