From: Marcin Mróz Date: Thu, 8 Jun 2023 18:48:32 +0000 (+0200) Subject: fix(#1067): Fix language not updating when editing post X-Git-Url: http://these/git/%7B?a=commitdiff_plain;h=7dfda39db05934874fdc30b84e8e355a9495e639;p=lemmy-ui.git fix(#1067): Fix language not updating when editing post --- diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 9f43d69..ae69a98 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -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 { 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));