Skip to content

Commit

Permalink
Fixes current user entity not being populated correctly (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Tran authored Sep 18, 2020
1 parent 4f809fb commit 3b7eb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web/@datahub/shared/addon/services/current-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class CurrentUser extends Service {
const userV1: IUser = await currentUserDeprecated();
const PersonEntityClass = dataModels.getModel(PersonEntity.displayName);
const urn = PersonEntityClass.urnFromUsername(userV1.userName);
const entity = dataModels.createPartialInstance(PersonEntityClass.displayName, { ...userV1, urn });
const entity = await dataModels.createInstance(PersonEntityClass.displayName, urn);

set(this, 'entity', entity);
}
Expand Down

0 comments on commit 3b7eb08

Please sign in to comment.