fix(#1067): Fix language not updating when editing post

This commit is contained in:
Marcin Mróz 2023-06-08 20:48:32 +02:00
parent 22a4fae0c2
commit 7dfda39db0

View file

@ -18,9 +18,9 @@ import { i18n } from "../../i18next";
import { PostFormParams } from "../../interfaces";
import { UserService, WebSocketService } from "../../services";
import {
Choice,
archiveTodayUrl,
capitalizeFirstLetter,
Choice,
communityToChoice,
debounce,
fetchCommunities,
@ -460,7 +460,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
body: pForm.body,
nsfw: pForm.nsfw,
post_id: pv.post.id,
language_id: pv.post.language_id,
language_id: pForm.language_id,
auth,
};
WebSocketService.Instance.send(wsClient.editPost(form));