Files
openobserve/web/src/composables
Bhargav afafffba27 fix: logs page column should re-populate in table grid from localstorage (#7632)
### **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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </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>&nbsp;
&nbsp; &nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___
2025-07-20 02:05:05 +05:30
..
2025-05-25 21:53:55 -07:00
2025-05-25 21:53:55 -07:00
2025-04-23 08:59:08 +05:30
2025-03-31 17:43:46 +05:30