Skip to content

Commit d0f9adc

Browse files
committed
fix: After review
1 parent a2bb253 commit d0f9adc

File tree

1 file changed

+5
-0
lines changed
  • src/schedule-and-details/introducing-section

1 file changed

+5
-0
lines changed

src/schedule-and-details/introducing-section/index.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ const IntroducingSection = ({
6969
/>
7070
);
7171

72+
const [initialOverview] = React.useState(overview);
73+
const [initialSidebar] = React.useState(aboutSidebarHtml);
74+
7275
return (
7376
<section className="section-container introducing-section">
7477
{aboutPageEditable && (
@@ -111,6 +114,7 @@ const IntroducingSection = ({
111114
<Form.Group className="form-group-custom">
112115
<Form.Label>{intl.formatMessage(messages.courseOverviewLabel)}</Form.Label>
113116
<WysiwygEditor
117+
initialValue={initialOverview}
114118
value={overview}
115119
onChange={(value) => onChange(value, 'overview')}
116120
/>
@@ -120,6 +124,7 @@ const IntroducingSection = ({
120124
<Form.Group className="form-group-custom">
121125
<Form.Label>{intl.formatMessage(messages.courseAboutSidebarLabel)}</Form.Label>
122126
<WysiwygEditor
127+
initialValue={initialSidebar}
123128
value={aboutSidebarHtml}
124129
onChange={(value) => onChange(value, 'aboutSidebarHtml')}
125130
/>

0 commit comments

Comments
 (0)