Merge pull request #12980 from Budibase/fix/autocomplete-insert

Fix for js binding auto complete
This commit is contained in:
deanhannigan 2024-02-07 10:22:55 +00:00 committed by GitHub
commit bcdad49800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

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) : ""