mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
Fix inconsistent match counting in log search
Use dataset.logContent instead of textContent for counting search matches in getMatchCount(). This aligns the counting logic with matchesSearch() which uses the same data attribute for filtering visibility, ensuring the displayed match count accurately reflects the number of visible/hidden lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -191,7 +191,7 @@
|
||||
let count = 0;
|
||||
const query = this.searchQuery.toLowerCase();
|
||||
lines.forEach(line => {
|
||||
if (line.textContent.toLowerCase().includes(query)) {
|
||||
if (line.dataset.logContent && line.dataset.logContent.toLowerCase().includes(query)) {
|
||||
count++;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user