From 3e5c246ea89f11eb8b7a905757bb8104a9e9ed0c Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Thu, 12 Feb 2026 09:12:30 +0100 Subject: [PATCH] fix(cloner): Fix RPC unwrapping in refresh() for images/tokens/clones Same expect unwrapping bug was present in refresh() function, causing stats to show counts but content to show "No items" Co-Authored-By: Claude Opus 4.5 --- .../htdocs/luci-static/resources/view/cloner/overview.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/secubox/luci-app-cloner/htdocs/luci-static/resources/view/cloner/overview.js b/package/secubox/luci-app-cloner/htdocs/luci-static/resources/view/cloner/overview.js index de871593..30e45789 100644 --- a/package/secubox/luci-app-cloner/htdocs/luci-static/resources/view/cloner/overview.js +++ b/package/secubox/luci-app-cloner/htdocs/luci-static/resources/view/cloner/overview.js @@ -416,9 +416,10 @@ return view.extend({ callGetBuildProgress().catch(function() { return {}; }) ]).then(function(data) { self.status = data[0] || {}; - self.images = data[1].images || []; - self.tokens = data[2].tokens || []; - self.clones = data[3].clones || []; + // RPC expect unwraps the arrays, so data[n] IS the array + self.images = data[1] || []; + self.tokens = data[2] || []; + self.clones = data[3] || []; self.buildProgress = data[4] || {}; // Update stats