1
0
Fork 0
mirror of synced 2024-07-11 09:15:48 +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
}
export function jsInsert(value, from, to, text, { helper, disableWrapping }) {
export function jsInsert(
value,
from,
to,
text,
{ helper, disableWrapping } = {}
) {
let parsedInsert = ""
const left = from ? value.substring(0, from) : ""