Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Commit

Permalink
Merge pull request #159 from Siderus/bugfix/property-window-files-not…
Browse files Browse the repository at this point in the history
…-showing

Fix the files tab on the property window
  • Loading branch information
kernelwhisperer authored Jul 27, 2018
2 parents 81fb6bb + 54df996 commit 2c08947
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/windows/Storage/Components/StorageElement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ class StorageElement extends React.Component {
}

_selectElement = (element) => {
if (!this.props.storageStore) return

const { selected } = this.props.storageStore

if (selected.find(el => el.hash === element.hash)) {
Expand All @@ -135,7 +137,11 @@ class StorageElement extends React.Component {

render () {
const el = this.props.element
const selected = this.props.storageStore.selected.find(x => x.hash === el.hash) !== undefined

let selected = false
if (this.props.storageStore) {
selected = this.props.storageStore.selected.find(x => x.hash === el.hash) !== undefined
}

return (
<tr
Expand Down

0 comments on commit 2c08947

Please sign in to comment.