fix: Fix up some interface language logic and design
This commit is contained in:
parent
35d20491ea
commit
8184e33c9f
4 changed files with 8 additions and 22 deletions
|
@ -326,12 +326,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
|||
render() {
|
||||
const url = this.state.form.url;
|
||||
|
||||
const userInterfaceLangId = !UserService.Instance.myUserInfo
|
||||
? 0
|
||||
: getUserInterfaceLangId({
|
||||
myUserInfo: UserService.Instance.myUserInfo,
|
||||
allLanguages: this.props.allLanguages,
|
||||
});
|
||||
const userInterfaceLangId = getUserInterfaceLangId(this.props.allLanguages);
|
||||
|
||||
return (
|
||||
<form className="post-form" onSubmit={linkEvent(this, handlePostSubmit)}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue