Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Aug 6, 2024
1 parent 0a7a006 commit 7a22a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/component/modal/ForumForumEditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7a22a08

Please sign in to comment.