1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Merge branch 'component-binding-refactor' of github.com:Budibase/budibase into component-binding-refactor

This commit is contained in:
Andrew Kingston 2021-01-22 14:38:26 +00:00
commit b9fb8d6c73

View file

@ -31,7 +31,8 @@ module.exports.processors = [
statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[")
}
lastIdx = startBraceIdx + 1
startBraceIdx = statement.substring(lastIdx + 1).indexOf("[")
const nextBraceIdx = statement.substring(lastIdx + 1).indexOf("[")
startBraceIdx = nextBraceIdx > 0 ? lastIdx + 1 + nextBraceIdx : -1
}
return statement
}),