Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kyan 2026-06-26 11:52:15 +08:00 committed by GitHub
parent f6a28dab67
commit 0532186cb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,8 +202,12 @@ async function updateFolderNamesInPath(
viewHeaderTitle.classList.remove('path-is-folder-note');
}
}
if (!folderNote) continue;
if (folderNote) breadcrumb.classList.add('has-folder-note');
if (!folderNote) {
breadcrumb.classList.remove('has-folder-note');
breadcrumb.removeAttribute('data-path');
continue;
}
breadcrumb.classList.add('has-folder-note');
breadcrumb?.setAttribute('data-path', path.slice(0, -TRAILING_SLASH_LENGTH));
if (!breadcrumb.onclick) {
breadcrumb.addEventListener('click', (e) => {