diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index d7aea050a..4e346667d 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -44,6 +44,7 @@ import { LanguageSelect } from "../common/language-select"; import { MarkdownTextArea } from "../common/markdown-textarea"; import { SearchableSelect } from "../common/searchable-select"; import { PostListings } from "./post-listings"; +import { isBrowser } from "@utils/browser"; const MAX_POST_TITLE_LENGTH = 200; @@ -367,8 +368,10 @@ export class PostForm extends Component { }, }; } + } - if (this.state.form.url) { + componentWillMount() { + if (this.state.form.url && isBrowser()) { this.fetchPageTitle(); } }