-
+ | {
+ // If the column is not collapsed no click handler!
+ if(!is_collapsed) return;
+
+ // The cell is collapsed, we need to expand it:
+
+ // If the entire column is collapsed we need
+ // to specify that only this row is expanded.
+ let column_desc = this.state.compact_columns[column];
+ if(column_desc === true) {
+ column_desc = {};
+ }
+ column_desc[rowIdx.toString()]=true;
+ let compact_columns = Object.assign(
+ {}, this.state.compact_columns);
+ compact_columns[column] = column_desc;
+ this.setState({compact_columns: compact_columns});
+ }}>
+
{ renderer(cell, row, this.props.env)}
|
{
let column_widths = Object.assign(
diff --git a/gui/velociraptor/src/components/notebooks/timelines.jsx b/gui/velociraptor/src/components/notebooks/timelines.jsx
index 3360036a355..985cf9f6c26 100644
--- a/gui/velociraptor/src/components/notebooks/timelines.jsx
+++ b/gui/velociraptor/src/components/notebooks/timelines.jsx
@@ -188,10 +188,11 @@ export class AddVQLCellToTimeline extends React.Component {
let time_columns = [];
let all_columns = [];
let rows = response.data.rows;
- if (!rows) {
+ if (_.isEmpty(rows)) {
return;
}
- _.each(response.data.rows[0].cell, (x, idx)=>{
+ let row = JSONparse(rows[0].json) || [];
+ _.each(row, (x, idx)=>{
if (this.isTimestamp(x)) {
time_columns.push(response.data.columns[idx]);
};