Fixed value of undefined.
This commit is contained in:
parent
d0e10b36e2
commit
1f726153e1
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { visit } from 'unist-util-visit';
|
|||
let currentBook = '';
|
||||
|
||||
function scriptureLink(node, args) {
|
||||
const value = node.children?.[0]?.value.trim() || '';
|
||||
const value = node.children?.[0]?.value?.trim() || '';
|
||||
let passage = (args && args.length > 0 && args[0] != '') ? args[0] : value;
|
||||
passage = passage.replaceAll(/–/g, '-');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue