refactor(react-tree-orgchart): remove console logs and unused variables
This commit is contained in:
parent
7cf7f69d22
commit
b3a579c729
|
@ -9,10 +9,7 @@ export default class SPServices {
|
|||
}
|
||||
|
||||
public async getUserProperties(user: string) {
|
||||
let currentUserProperties: any = await sp.profiles.getPropertiesFor(user);
|
||||
console.log(currentUserProperties);
|
||||
|
||||
return currentUserProperties;
|
||||
return await sp.profiles.getPropertiesFor(user);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -24,7 +21,6 @@ export default class SPServices {
|
|||
user,
|
||||
property
|
||||
);
|
||||
console.log(UserProperty);
|
||||
|
||||
return UserProperty;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,6 @@ export default class TreeOrgChart extends React.Component<
|
|||
children: treeManagers.treeChildren
|
||||
});
|
||||
}
|
||||
console.log(JSON.stringify(this.treeData));
|
||||
this.setState({ treeData: this.treeData, isLoading: false });
|
||||
}
|
||||
|
||||
|
@ -306,7 +305,7 @@ export default class TreeOrgChart extends React.Component<
|
|||
iconProps={{ iconName: "ContactInfo" }}
|
||||
title="Contact Info"
|
||||
ariaLabel="Contact"
|
||||
onClick={ev => {
|
||||
onClick={() => {
|
||||
window.open(
|
||||
`https://eur.delve.office.com/?p=${rowInfo.node.title.props.tertiaryText}&v=work`
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue