Commit c2e68462 authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#498 fix grouped command lines display

parent d150df6f
Pipeline #47823 passed with stage
in 2 minutes and 54 seconds
......@@ -47,6 +47,11 @@ function Event(props) {
</a>
);
};
const onHandleClick = () => {
setCollapsed(!collapsed);
};
return events.map((event, index) => (
<tr key={index} style={{ backgroundColor: '#f0f0f6' }}>
<td
......@@ -90,7 +95,7 @@ function Event(props) {
backgroundColor: '#f8f8f8',
cursor: 'pointer',
}}
onClick={setCollapsed(!collapsed)}
onClick={onHandleClick}
>
.... {event.events.length} command lines more
</Label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment