mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Updated recommendation creation to use excerpt by default (#18118)
fixes https://github.com/TryGhost/Product/issues/3869
This commit is contained in:
parent
e9af2c86c1
commit
5d696d0d0a
2 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ const AddRecommendationModal: React.FC<AddRecommendationModalProps> = ({recommen
|
|||
updatedRecommendation.favicon = oembed?.metadata?.icon ?? formState.favicon ?? null;
|
||||
updatedRecommendation.one_click_subscribe = false;
|
||||
}
|
||||
updatedRecommendation.reason = updatedRecommendation.excerpt || null;
|
||||
|
||||
// Switch modal without changing the route (the second modal is not reachable by URL)
|
||||
modal.remove();
|
||||
|
|
|
@ -39,7 +39,7 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
|
|||
<TextArea
|
||||
clearBg={true}
|
||||
rows={3}
|
||||
title="Reason for recommending (optional)"
|
||||
title="Description (optional)"
|
||||
value={formState.reason ?? ''}
|
||||
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue