Browse Source

changing bindings key

master
Peter Clement 5 years ago
parent
commit
2ead1c59be
  1. 6
      packages/builder/src/builderStore/dataBinding.js
  2. 3
      packages/client/src/utils/enrichDataBinding.js

6
packages/builder/src/builderStore/dataBinding.js

@ -333,12 +333,10 @@ const getRowBindings = () => {
bindings = [ bindings = [
{ {
type: "context", type: "context",
runtimeBinding: `${safeState}.${makePropSafe("row")}`, runtimeBinding: `${safeState}`,
readableBinding: "Rows", readableBinding: "Row Selection.Rows",
}, },
] ]
return bindings
} }
return bindings return bindings
} }

3
packages/client/src/utils/enrichDataBinding.js

@ -24,5 +24,8 @@ export const enrichDataBinding = async (input, context) => {
* Props are deeply cloned so that no mutation is done to the source object. * Props are deeply cloned so that no mutation is done to the source object.
*/ */
export const enrichDataBindings = (props, context) => { export const enrichDataBindings = (props, context) => {
console.log(props)
console.log(context)
return processObjectSync(cloneDeep(props), context) return processObjectSync(cloneDeep(props), context)
} }

Loading…
Cancel
Save