From 1c2e8675859fc8f70ea12a414462b7280c1f8b31 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 30 Mar 2026 23:14:42 -0400 Subject: [PATCH] fix: rename icon variable to iconContainer to avoid shadowing Lucide icon function --- frontend/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index eeb4630..93109af 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -3207,15 +3207,15 @@ const header = document.createElement("div"); header.className = "dashboard-card-header"; - const icon = document.createElement("div"); - icon.className = "dashboard-card-icon"; + const iconContainer = document.createElement("div"); + iconContainer.className = "dashboard-card-icon"; const fileIconName = getFileIcon(file.path); try { - icon.appendChild(icon(fileIconName, 24)); + iconContainer.appendChild(icon(fileIconName, 24)); } catch (e) { console.error("Error creating icon:", fileIconName, e); // Fallback to default file icon - icon.appendChild(icon("file", 24)); + iconContainer.appendChild(icon("file", 24)); } const badge = document.createElement("span"); @@ -3232,7 +3232,7 @@ this.toggleBookmark(file.vault, file.path, file.title, card); }); - header.appendChild(icon); + header.appendChild(iconContainer); header.appendChild(badge); header.appendChild(bookmarkBtn); card.appendChild(header);