1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Ensure insert config items are defaulted to avoid destructring issue

This commit is contained in:
Dean 2024-02-07 10:03:37 +00:00
parent 2cb4e7de71
commit 51b19633f4

View file

@ -286,7 +286,13 @@ export const hbInsert = (value, from, to, text) => {
return parsedInsert return parsedInsert
} }
export function jsInsert(value, from, to, text, { helper, disableWrapping }) { export function jsInsert(
value,
from,
to,
text,
{ helper, disableWrapping } = {}
) {
let parsedInsert = "" let parsedInsert = ""
const left = from ? value.substring(0, from) : "" const left = from ? value.substring(0, from) : ""