From 7dfda39db05934874fdc30b84e8e355a9495e639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Mro=CC=81z?= Date: Thu, 8 Jun 2023 20:48:32 +0200 Subject: [PATCH] fix(#1067): Fix language not updating when editing post --- src/shared/components/post/post-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 9f43d69b..ae69a98c 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));