mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +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:
parent
40b1b1319f
commit
20e4783528
@ -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++;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user