Skip to content

Commit 7e295f9

Browse files
authored
Fix sidebar icon duplication after Starlight upgrade (#362)
1 parent 911814e commit 7e295f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/js/icon-loader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
}
4343

4444
navElements.forEach((element) => {
45+
if (element.children && element.children.length > 0) {
46+
return;
47+
}
48+
4549
// Get the text content, trimming whitespace
4650
const textContent = element.textContent.trim();
4751

0 commit comments

Comments
 (0)