mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
fix(#1067): Fix language not updating when editing post
This commit is contained in:
parent
22a4fae0c2
commit
7dfda39db0
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@ import { i18n } from "../../i18next";
|
||||||
import { PostFormParams } from "../../interfaces";
|
import { PostFormParams } from "../../interfaces";
|
||||||
import { UserService, WebSocketService } from "../../services";
|
import { UserService, WebSocketService } from "../../services";
|
||||||
import {
|
import {
|
||||||
Choice,
|
|
||||||
archiveTodayUrl,
|
archiveTodayUrl,
|
||||||
capitalizeFirstLetter,
|
capitalizeFirstLetter,
|
||||||
|
Choice,
|
||||||
communityToChoice,
|
communityToChoice,
|
||||||
debounce,
|
debounce,
|
||||||
fetchCommunities,
|
fetchCommunities,
|
||||||
|
@ -460,7 +460,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
body: pForm.body,
|
body: pForm.body,
|
||||||
nsfw: pForm.nsfw,
|
nsfw: pForm.nsfw,
|
||||||
post_id: pv.post.id,
|
post_id: pv.post.id,
|
||||||
language_id: pv.post.language_id,
|
language_id: pForm.language_id,
|
||||||
auth,
|
auth,
|
||||||
};
|
};
|
||||||
WebSocketService.Instance.send(wsClient.editPost(form));
|
WebSocketService.Instance.send(wsClient.editPost(form));
|
||||||
|
|
Loading…
Reference in a new issue