From: Lionir Date: Thu, 13 Jul 2023 02:26:21 +0000 (-0400) Subject: Set person_id to myId in handleLeaveModTeam (#1929) X-Git-Url: http://these/git/readmes/README.ja.md?a=commitdiff_plain;h=9e246beb036f021a5475707b8905fd9852343d93;p=lemmy-ui.git Set person_id to myId in handleLeaveModTeam (#1929) --- diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 9f7eff2..ec454de 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -573,7 +573,7 @@ export class Sidebar extends Component { i.setState({ leaveModTeamLoading: true }); i.props.onLeaveModTeam({ community_id: i.props.community_view.community.id, - person_id: 92, + person_id: myId, added: false, auth: myAuthRequired(), });