Skip to content

Commit

Permalink
BUGFIX: Prevent exception for unpublished page
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandschuetz authored Feb 28, 2022
1 parent 27fd461 commit 8d19f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/Prototypes/StringLink.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ prototype(CodeQ.Link:StringLink) < prototype(Neos.Fusion:Component) {
isNode {
condition = ${props.linkType == 'node'}
renderer = Neos.Fusion:Value {
node = ${Neos.Link.convertUriToObject(props.link, documentNode)}
value = ${q(this.node).closest('[instanceof Neos.Neos:Document]').property('title')}
node = ${Neos.Link.convertUriToObject(props.link, node)}
value = ${this.node && q(this.node).closest('[instanceof Neos.Neos:Document]').property('title')}
}
}
isEmail {
Expand Down

0 comments on commit 8d19f91

Please sign in to comment.