Update user node so it doesn't totally break

Update version number too
master
Rohan Vazarkar 2017-10-11 06:15:57 -04:00
parent 92c1bd87cd
commit b8f4c0acba
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "bloodhound",
"version": "1.3.0",
"version": "1.4.0",
"description": "Graph Theory for Active Directory",
"keywords": [
"Graph",

View File

@ -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));