diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index ee805a7c040..c507ab3e700 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -408,6 +408,12 @@ export class PostForm extends Component { handlePostSubmit(i: PostForm, event: any) { event.preventDefault(); + + // Coerce empty url string to undefined + if (i.state.postForm.url && i.state.postForm.url === '') { + i.state.postForm.url = undefined; + } + if (i.props.post) { WebSocketService.Instance.editPost(i.state.postForm); } else {