mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Updated newsletters to follow sort order
- updates portal to respect newsletter ordering set in Admin
This commit is contained in:
parent
17414b23a2
commit
7c6d9a07d4
1 changed files with 4 additions and 1 deletions
|
@ -375,8 +375,11 @@ export function hasFreeProductPrice({site}) {
|
|||
|
||||
export function getSiteNewsletters({site}) {
|
||||
const {
|
||||
newsletters
|
||||
newsletters = []
|
||||
} = site || {};
|
||||
newsletters?.sort((a, b) => {
|
||||
return a.sort_order - b.sort_order;
|
||||
});
|
||||
return newsletters;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue