Skip to content

Commit

Permalink
Fix link text rendering when content is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed May 28, 2024
1 parent 22f123c commit 5ca3b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/text/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import usage from './link.usage.js';

export default function(host) {
const prepareProps = host.queryFn(`is not array? | {
text: # has no 'content' ? is string ?: text,
text: #.content is undefined ? is string ?: text,
content: #.content,
href,
external,
Expand Down

0 comments on commit 5ca3b7e

Please sign in to comment.