summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community-form.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-21 14:38:57 -0700
committerDessalines <tyhou13@gmx.com>2019-04-21 14:38:57 -0700
commit2a92a5611cfb2caaf0329f485d042cbaedfe0e24 (patch)
tree3894aa09466b5b1684d670f3e7d483ce1a84842f /ui/src/components/community-form.tsx
parent016920aeb7dc47f32412829c70b872c54caf10e3 (diff)
Add site editing.
- Fixes #96
Diffstat (limited to 'ui/src/components/community-form.tsx')
-rw-r--r--ui/src/components/community-form.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx
index 14c2a6b8..2d5aa3e7 100644
--- a/ui/src/components/community-form.tsx
+++ b/ui/src/components/community-form.tsx
@@ -168,7 +168,10 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt
let res: CommunityResponse = msg;
this.state.loading = false;
this.props.onCreate(res.community.id);
- } else if (op == UserOperation.EditCommunity) {
+ }
+
+ // TODO is this necessary?
+ else if (op == UserOperation.EditCommunity) {
let res: CommunityResponse = msg;
this.state.loading = false;
this.props.onEdit(res.community);