From 7a22a0842ae5f4e61028ac3cb2cef9c97aa9ad60 Mon Sep 17 00:00:00 2001 From: Leigh MacDonald Date: Mon, 5 Aug 2024 20:55:04 -0600 Subject: [PATCH] Formatting --- frontend/src/component/modal/ForumForumEditorModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/modal/ForumForumEditorModal.tsx b/frontend/src/component/modal/ForumForumEditorModal.tsx index 5d0f1b9c..dca3b53c 100644 --- a/frontend/src/component/modal/ForumForumEditorModal.tsx +++ b/frontend/src/component/modal/ForumForumEditorModal.tsx @@ -59,8 +59,8 @@ export const ForumForumEditorModal = NiceModal.create( }); const defaultCategory = forum?.forum_category_id - ? categories.find((value) => value.forum_category_id == forum.forum_category_id)?.forum_category_id ?? - categories[0].forum_category_id + ? (categories.find((value) => value.forum_category_id == forum.forum_category_id)?.forum_category_id ?? + categories[0].forum_category_id) : categories[0].forum_category_id; const { Field, Subscribe, handleSubmit, reset } = useForm({