Skip to content

Commit

Permalink
fix two bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyueyuyuan committed Aug 25, 2023
1 parent f554b90 commit 2cb57ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Activity/ActivityEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ export class ActivityEditor extends PureComponent<ActivityEditorProps> {
</Form.Label>
<Col sm={10}>
<HTMLEditor
defaultValue={detail}
onChange={code => (this.detailHTML = code)}
defaultValue={this.detailHTML}
onChange={code => (this.detailHTML = code === '<br>' ? '' : code)}
/>
<Form.Control
hidden
name="detail"
required
defaultValue={this.detailHTML || detail}
defaultValue={this.detailHTML}
/>
<Form.Control.Feedback type="invalid">
{textJoin(t('please_enter'), t('activity_detail'))}
Expand Down

1 comment on commit 2cb57ac

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for open-hackathon ready!

✅ Preview
https://open-hackathon-qtvk9bdfn-techquery.vercel.app

Built with commit 2cb57ac.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.