From: Dessalines Date: Wed, 7 Apr 2021 16:46:12 +0000 (-0400) Subject: Fixing issue with debounce. Fixes #236 X-Git-Url: http://these/git/%24%7B%20%20%20%20%20%20customEmoji%21.custom_emoji.image_url%20%20%20%20%7D?a=commitdiff_plain;h=af44b621076a28fccd9b4d46c17cccf8bbd130de;p=lemmy-ui.git Fixing issue with debounce. Fixes #236 --- diff --git a/src/shared/components/post-form.tsx b/src/shared/components/post-form.tsx index 219ca24..b5a83c3 100644 --- a/src/shared/components/post-form.tsx +++ b/src/shared/components/post-form.tsx @@ -90,8 +90,8 @@ export class PostForm extends Component { constructor(props: any, context: any) { super(props, context); - this.fetchSimilarPosts = debounce(this.fetchSimilarPosts).bind(this); - this.fetchPageTitle = debounce(this.fetchPageTitle).bind(this); + this.fetchSimilarPosts = debounce(this.fetchSimilarPosts.bind(this)); + this.fetchPageTitle = debounce(this.fetchPageTitle.bind(this)); this.handlePostBodyChange = this.handlePostBodyChange.bind(this); this.state = this.emptyState;