Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Fix a 'not defined' error
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Nov 1, 2017
1 parent 7fbb381 commit 8d7645f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/scripts/NodeViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ export default class NodeViewer extends React.Component {
}

setHide(target, hide, name, data) {
if (!this.props.entry) return
var entry = this.props.entry
if (!entry) return
if (typeof data === 'undefined')
data = null
if (!name || name === 'password')
this.props.entry.password = data
else
this.props.entry.strings[name] = data
entry.password = data
else if (entry.strings)
entry.strings[name] = data

if (hide === true)
target.childNodes[0].className = 'glyphicon glyphicon-eye-open'
Expand Down

0 comments on commit 8d7645f

Please sign in to comment.