Fix Reply's markdown-editor appearing in Create due to 'name' clash from a prior merger.

This commit is contained in:
infiinte-persistence 2020-05-21 18:26:39 +08:00 committed by Sean Yesmunt
parent 5b11cd7c65
commit 7064793319

View file

@ -103,7 +103,7 @@ export function CommentCreate(props: Props) {
<FormField <FormField
disabled={channel === CHANNEL_NEW} disabled={channel === CHANNEL_NEW}
type={advancedEditor ? 'markdown' : 'textarea'} type={advancedEditor ? 'markdown' : 'textarea'}
name="content_description" name={isReply ? 'content_reply' : 'content_description'}
label={isReply ? __('Replying as %reply_channel%', { reply_channel: channel }) : __('Comment')} label={isReply ? __('Replying as %reply_channel%', { reply_channel: channel }) : __('Comment')}
quickActionLabel={advancedEditor ? __('Simple Editor') : __('Advanced Editor')} quickActionLabel={advancedEditor ? __('Simple Editor') : __('Advanced Editor')}
quickActionHandler={toggleEditorMode} quickActionHandler={toggleEditorMode}