Skip to content

Commit 8cfcdc8

Browse files
committed
fix width logic
1 parent dba4b9d commit 8cfcdc8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • x-pack/plugins/security_solution/public/timelines/components/timeline/body

x-pack/plugins/security_solution/public/timelines/components/timeline/body/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ export const Body = React.memo<BodyProps>(
104104
ecsData: rowData.ecs,
105105
nonEcsData: rowData.data,
106106
});
107-
return rowActions && rowActions.length > acc.length ? rowActions : acc;
107+
return rowActions &&
108+
rowActions.filter((v) => v.displayType === 'icon').length >
109+
acc.filter((v) => v.displayType === 'icon').length
110+
? rowActions
111+
: acc;
108112
}, []),
109113
[data, getManageTimelineById, id]
110114
);

0 commit comments

Comments
 (0)