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

Commit

Permalink
hotfix: application crashes because selectedRow was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Dec 4, 2017
1 parent 66f9211 commit 5eace26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app/DocumentList.js
Expand Up @@ -264,7 +264,7 @@ class DocumentList extends Component {
const rows = getRowsData(data.result);
if (selected.length === 1) {
const selectedRow = rows.find(row => row.id === selected[0]);
this.supportAttribute = selectedRow.supportAttributes;
this.supportAttribute = selectedRow && selectedRow.supportAttributes;
} else {
this.supportAttribute = false;
}
Expand Down

0 comments on commit 5eace26

Please sign in to comment.