[SIEM] Fixing crash when collapsing a second event details (#38303) (#38356)

Backports the following commits to 7.x:
 - Fixing crash when collapsing a second event details  (#38303)
This commit is contained in:
Garrett Spong 2019-06-07 09:46:39 -06:00 committed by GitHub
parent 57532d8074
commit cb2b577176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,14 +78,18 @@ export const getColumns = ({
truncateText: false,
render: (field: string, data: DetailItem) => (
<DroppableWrapper
droppableId={getDroppableId(`event-details-${data.category}-${field}-${timelineId}`)}
droppableId={getDroppableId(
`event-details-${eventId}-${data.category}-${field}-${timelineId}`
)}
key={`${data.category}-${field}-${timelineId}`}
isDropDisabled={true}
type={DRAG_TYPE_FIELD}
>
<Draggable
draggableId={getDraggableFieldId({
contextId: `field-browser-category-${data.category}-field-${field}-${timelineId}`,
contextId: `field-browser-category-${eventId}-${
data.category
}-field-${field}-${timelineId}`,
fieldId: field,
})}
index={0}