Wrap readable bindings on []

This commit is contained in:
Adria Navarro 2025-02-27 12:55:53 +01:00
parent 0a8cf31dff
commit 0a17ba7767
1 changed files with 4 additions and 0 deletions

View File

@ -463,6 +463,10 @@ const generateComponentContextBindings = (asset, componentContext) => {
}
readableBinding += `.${fieldSchema.name || key}`
if (readableBinding.includes(" ")) {
readableBinding = `[${readableBinding}]`
}
// Determine which category this binding belongs in
const bindingCategory = getComponentBindingCategory(
component,