Ensure insert config items are defaulted to avoid destructring issue
This commit is contained in:
parent
2cb4e7de71
commit
51b19633f4
|
@ -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) : ""
|
||||
|
|
Loading…
Reference in New Issue