Skip to content

Commit 0117ef6

Browse files
olzzonjstarpl
andauthored
Update packages/webui/src/client/ui/TestTools/Timeline.tsx
Co-authored-by: Jan Starzak <[email protected]>
1 parent 05471e3 commit 0117ef6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/webui/src/client/ui/TestTools/Timeline.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,10 @@ function renderTimelineState(state: TimelineState, filter: RegExp | string | und
258258
<td>{(o.classes ?? []).join('<br />')}</td>
259259
<td style={{ whiteSpace: 'pre' }}>
260260
<pre>{JSON.stringify(o.content, undefined, '\t')}</pre>
261-
<pre>
262-
{
261+
{o.abSessions && <pre>{
263262
//@ts-expect-error - abSessions is not in the type but are still in the object if used:
264-
o.abSessions && 'AB-Sessions:' + '\n' + JSON.stringify(o.abSessions, undefined, '\t')
265-
}
266-
</pre>
263+
'AB-Sessions:' + '\n' + JSON.stringify(o.abSessions, undefined, '\t')
264+
}</pre>}
267265
</td>
268266
</tr>
269267
))

0 commit comments

Comments
 (0)