mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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.favicon = oembed?.metadata?.icon ?? formState.favicon ?? null;
|
||||||
updatedRecommendation.one_click_subscribe = false;
|
updatedRecommendation.one_click_subscribe = false;
|
||||||
}
|
}
|
||||||
|
updatedRecommendation.reason = updatedRecommendation.excerpt || null;
|
||||||
|
|
||||||
// Switch modal without changing the route (the second modal is not reachable by URL)
|
// Switch modal without changing the route (the second modal is not reachable by URL)
|
||||||
modal.remove();
|
modal.remove();
|
||||||
|
|
|
@ -39,7 +39,7 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
|
||||||
<TextArea
|
<TextArea
|
||||||
clearBg={true}
|
clearBg={true}
|
||||||
rows={3}
|
rows={3}
|
||||||
title="Reason for recommending (optional)"
|
title="Description (optional)"
|
||||||
value={formState.reason ?? ''}
|
value={formState.reason ?? ''}
|
||||||
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
|
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue