Skip to content

Commit

Permalink
Only clone user instead of session
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Nov 6, 2023
1 parent be595e3 commit e23a034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepwell/src/services/view/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ impl ViewService {
// For users visiting their own user info page
None => viewer
.user_session
.clone()
.and_then(|session| Some(session.user)),
.as_ref()
.and_then(|session| Some(session.user.clone())),
};

let output = match user {
Expand Down

0 comments on commit e23a034

Please sign in to comment.