mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
### **PR Type**
Bug fix
___
### **Description**
- Fix log columns repopulation condition
- Check `logFilterField` object keys instead of length
- Ensure selected fields array before spreading
- Avoid undefined filter key errors
___
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Bug
fix</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>useLogs.ts</strong><dd><code>Improve log filter field
validation</code>
</dd></summary>
<hr>
web/src/composables/useLogs.ts
<ul><li>Replace object length check with <code>Object.keys</code> <br>
<li> Add <code>Array.isArray</code> validation for filter key <br> <li>
Spread selected fields safely when defined <br> <li> Preserve backward
compatibility for streams</ul>
</details>
</td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7632/files#diff-1040f61354f92711e0e77ed4e9bfa15586d45a94c7e2ab06cc37372068030e7b">+5/-7</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
</details>
___