keephq / keep

The open-source alert management and AIOps platform
https://keephq.dev
Other
4.82k stars 699 forks source link

[🐛 Bug]: fix hydration error: <div> cannot be a child of <thead>. #2514

Open Kiryous opened 5 hours ago

dosubot[bot] commented 5 hours ago

The <thead> and its children are being rendered in the RulesTable component within the file keep-ui/app/mapping/rules-table.tsx. Specifically, the <TableHead> component is used to render the table header, and it contains a mapping over table.getHeaderGroups() to render each header group and its headers using <TableRow> and <TableHeaderCell> components [1].

To fix the hydration error, ensure that no <div> elements are being rendered directly within the <thead>. Check the components and functions used within the <TableHead> to ensure they are not inadvertently rendering <div> elements.

To continue talking to Dosu, mention @dosu.