From 76d19d3bc75f776cb2e076a96b5fd838339063f6 Mon Sep 17 00:00:00 2001 From: Hiro Date: Sat, 28 Mar 2026 12:27:15 +0000 Subject: [PATCH] fix: extract arrays from API response objects --- public/js/views/dashboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/views/dashboard.js b/public/js/views/dashboard.js index ca1b834..00e3750 100644 --- a/public/js/views/dashboard.js +++ b/public/js/views/dashboard.js @@ -12,11 +12,14 @@ export async function renderDashboard(app) { let selectedLibrary = app.state.selectedLibrary || null; try { - [documents, libraries, tags] = await Promise.all([ + const [docResult, libResult, tagResult] = await Promise.all([ api.getDocuments(), api.getLibraries(), api.getTags() ]); + documents = docResult.documents || []; + libraries = libResult.libraries || []; + tags = tagResult.tags || []; } catch (e) { app.showToast('Failed to load data', 'error'); }