]> Untitled Git - lemmy-ui.git/commitdiff
Fixing issue with debounce. Fixes #236
authorDessalines <tyhou13@gmx.com>
Wed, 7 Apr 2021 16:46:12 +0000 (12:46 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 7 Apr 2021 16:46:12 +0000 (12:46 -0400)
src/shared/components/post-form.tsx

index 219ca249f48ce67284b8aea9a7a039bea11a81b5..b5a83c340704f7d7547d6bf2a400bad2fe330098 100644 (file)
@@ -90,8 +90,8 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
 
   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;