refactor(react-tree-orgchart): remove whitespace
This commit is contained in:
parent
319029b7cf
commit
27878aa71f
|
@ -1,5 +1,5 @@
|
|||
import { WebPartContext } from "@microsoft/sp-webpart-base";
|
||||
import { sp } from '@pnp/sp';
|
||||
import { sp } from "@pnp/sp";
|
||||
|
||||
export default class SPServices {
|
||||
constructor(private context: WebPartContext) {
|
||||
|
@ -8,8 +8,8 @@ export default class SPServices {
|
|||
});
|
||||
}
|
||||
|
||||
public async getUserProperties(user:string) {
|
||||
let currentUserProperties:any = await sp.profiles.getPropertiesFor(user);
|
||||
public async getUserProperties(user: string) {
|
||||
let currentUserProperties: any = await sp.profiles.getPropertiesFor(user);
|
||||
console.log(currentUserProperties);
|
||||
|
||||
return currentUserProperties;
|
||||
|
@ -19,12 +19,13 @@ export default class SPServices {
|
|||
* async GetUserProfileProperty
|
||||
* user:string
|
||||
*/
|
||||
public async getUserProfileProperty(user:string,property:string) {
|
||||
let UserProperty:any = await sp.profiles.getUserProfilePropertyFor(user, property);
|
||||
public async getUserProfileProperty(user: string, property: string) {
|
||||
let UserProperty: any = await sp.profiles.getUserProfilePropertyFor(
|
||||
user,
|
||||
property
|
||||
);
|
||||
console.log(UserProperty);
|
||||
|
||||
return UserProperty;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue