From 1ae50f89c6d8c6a0a3087cd1a003aa3dd000ad31 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 16 Aug 2019 18:46:39 -0700 Subject: [PATCH] Fixing create post bug. - Fixes #202 --- ui/src/components/post-form.tsx | 18 +++++++++++------- ui/src/utils.ts | 10 ++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 704b1cdd..42620c9f 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -4,7 +4,7 @@ import { Subscription } from "rxjs"; import { retryWhen, delay, take } from 'rxjs/operators'; import { PostForm as PostFormI, Post, PostResponse, UserOperation, Community, ListCommunitiesResponse, ListCommunitiesForm, SortType, SearchForm, SearchType, SearchResponse } from '../interfaces'; import { WebSocketService, UserService } from '../services'; -import { msgOp, getPageTitle, debounce, capitalizeFirstLetter } from '../utils'; +import { msgOp, getPageTitle, debounce, validURL, capitalizeFirstLetter } from '../utils'; import * as autosize from 'autosize'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; @@ -91,7 +91,7 @@ export class PostForm extends Component {
- + {this.state.suggestedTitle &&
#
} @@ -100,7 +100,7 @@ export class PostForm extends Component {
-