Fix homepage external link placement and publish sanitization
This commit is contained in:
+5
-1
@@ -162,7 +162,11 @@ function sanitizeCustomLinks(value) {
|
||||
.filter(item => item && typeof item === 'object')
|
||||
.map(item => {
|
||||
const placement =
|
||||
item?.placement === 'platforms' || item?.placement === 'footer' || item?.placement === 'resources'
|
||||
item?.placement === 'platforms'
|
||||
|| item?.placement === 'footer'
|
||||
|| item?.placement === 'resources'
|
||||
|| item?.placement === 'otherSites'
|
||||
|| item?.placement === 'externalSites'
|
||||
? item.placement
|
||||
: 'footer'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user