Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Additional immutable check for rowObjects
Browse files Browse the repository at this point in the history
Auditors: @bsclifton

Test Plan:
1. go to "about:history"
2. do not select anything
3. right click on an arbitrary entry
4. context menu should show
  • Loading branch information
darkdh committed Oct 28, 2016
1 parent 0e6ba28 commit d41a2d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/sortableTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ class SortableTable extends React.Component {
(this.props.rowObjects.size > 0 || this.props.rowObjects.length > 0)
? (typeof this.props.rowObjects.toJS === 'function'
? this.props.rowObjects.get(index).toJS()
: this.props.rowObjects[index])
: (typeof this.props.rowObjects[index].toJS === 'function'
? this.props.rowObjects[index].toJS()
: this.props.rowObjects[index]))
: row

// Allow parent control to optionally specify context
Expand Down

0 comments on commit d41a2d8

Please sign in to comment.