Skip to content

Commit

Permalink
Update user node so it doesn't totally break
Browse files Browse the repository at this point in the history
Update version number too
  • Loading branch information
rvazarkar committed Oct 11, 2017
1 parent 92c1bd8 commit b8f4c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bloodhound",
"version": "1.3.0",
"version": "1.4.0",
"description": "Graph Theory for Active Directory",
"keywords": [
"Graph",
Expand Down
3 changes: 3 additions & 0 deletions src/components/SearchContainer/Tabs/UserNodeData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export default class UserNodeData extends Component {
props.run("MATCH (n:User {name:{name}}) RETURN n", {name: payload})
.then(function(result){
var properties = result.records[0]._fields[0].properties;
if (typeof properties.ServicePrincipalNames === 'undefined'){
properties.ServicePrincipalNames = [];
}
this.setState({propertyMap: properties});
props.close();
}.bind(this));
Expand Down

0 comments on commit b8f4c0a

Please sign in to comment.