diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-17 21:07:47 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-17 21:07:47 -0700 |
commit | cb7adae5c91410eb6cd2616dfbf80512db900c6b (patch) | |
tree | 7f026b6ba4924e2382b64ad3c40b01aeeaec4a27 /ui/src/components/community-form.tsx | |
parent | ab08f5e2c7c0ea5fe4cdd3e3dc09be73a6d42474 (diff) |
Forum category changing on edit issue.
- Fixes #69
Diffstat (limited to 'ui/src/components/community-form.tsx')
-rw-r--r-- | ui/src/components/community-form.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 056c29dc..0613ef4d 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -160,7 +160,9 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt } else if (op == UserOperation.ListCategories){ let res: ListCategoriesResponse = msg; this.state.categories = res.categories; - this.state.communityForm.category_id = res.categories[0].id; + if (!this.props.community) { + this.state.communityForm.category_id = res.categories[0].id; + } this.setState(this.state); } else if (op == UserOperation.CreateCommunity) { let res: CommunityResponse = msg; |