]> Untitled Git - lemmy-ui.git/commitdiff
fix: Fix incorrect function reference
authorJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 20:23:21 +0000 (16:23 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 20:23:21 +0000 (16:23 -0400)
src/shared/components/private_message/private-message-form.tsx

index 147269a58415424806586eac5799b512c59344a5..dbd299836af46f172ba2cc2c9dcbf604137e300f 100644 (file)
@@ -114,7 +114,7 @@ export class PrivateMessageForm extends Component<
               allLanguages={[]}
               siteLanguages={[]}
               hideNavigationWarnings
-              onReplyCancel={() => handleCancel()}
+              onReplyCancel={() => this.handleCancel(this)}
               replyType={this.props.replyType}
               buttonTitle={
                 this.props.privateMessageView