From b1c9abe5cfeb8d335c5580a0450ae3faae31f341 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Thu, 12 Feb 2026 08:52:44 +0100 Subject: [PATCH] fix(cloner): Fix empty devices list due to RPC expect unwrapping RPC declarations with expect: { field: [] } unwrap the response, so data[n] IS the array, not data[n].field. Changed: - this.images = data[1] || [] - this.tokens = data[2] || [] - this.clones = data[3] || [] - this.devices = data[4] || [] Co-Authored-By: Claude Opus 4.5 --- .../htdocs/luci-static/resources/view/cloner/overview.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 7605e3ce..3308a016 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 @@ -106,10 +106,11 @@ return view.extend({ render: function(data) { var self = this; this.status = data[0] || {}; - this.images = data[1].images || []; - this.tokens = data[2].tokens || []; - this.clones = data[3].clones || []; - this.devices = data[4].devices || []; + // RPC expect unwraps the arrays, so data[n] IS the array + this.images = data[1] || []; + this.tokens = data[2] || []; + this.clones = data[3] || []; + this.devices = data[4] || []; this.buildProgress = data[5] || {}; var content = [