From 1aa8490c87aefdd637b4d89de3aafe4a7f10de75 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 4 Mar 2026 01:41:02 +0100 Subject: [PATCH] luci-app-lldpd: fix 'dImg is not defined' follow-up to b07c6833de87f89a0b9b41c0c33a7d32bd314d58 Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/lldpd/status.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js index 1c6bbdb43d..30e9d2428e 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js @@ -341,13 +341,14 @@ return L.view.extend({ // ... // row[N] - contents for N-th cell in row // + let dImg; if (row.length < 2) return row; for (let i = 1; i < row.length; i++) { if (i == 1) { // Fold/unfold image appears only in first column - const dImg = E('div', { 'style': 'padding: 0 8px 0 0;' }, [ + dImg = E('div', { 'style': 'padding: 0 8px 0 0;' }, [ E('img', { 'width': '16px', 'src': this.getFoldingImage(unfolded) }), ]); }