Skip to content

Commit

Permalink
fix(ui): header failed to display on live tail
Browse files Browse the repository at this point in the history
close #1481
  • Loading branch information
tchiotludo committed Jun 27, 2023
1 parent 551f63a commit cfe378f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/src/containers/Tail/Tail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,11 @@ class Tail extends Root {
}}
noContent={<tr />}
onExpand={obj => {
return Object.keys(obj.headers).map((header, i) => {
return obj.headers.map((header, i) => {
return (
<tr
key={i}
className={'table-sm'}
style={{
display: 'flex',
flexDirection: 'row',
Expand All @@ -521,7 +522,7 @@ class Tail extends Root {
backgroundColor: '#171819'
}}
>
{header}
{header.key}
</td>
<td
style={{
Expand All @@ -532,7 +533,7 @@ class Tail extends Root {
backgroundColor: '#171819'
}}
>
{obj.headers[header]}
{header.value}
</td>
</tr>
);
Expand Down

0 comments on commit cfe378f

Please sign in to comment.