From 2ead1c59bec60339212ef87670c456007febaf50 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Fri, 11 Feb 2022 15:37:43 +0000 Subject: [PATCH] changing bindings key --- packages/builder/src/builderStore/dataBinding.js | 6 ++---- packages/client/src/utils/enrichDataBinding.js | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index e8381aad1f..99b3d2db1e 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -333,12 +333,10 @@ const getRowBindings = () => { bindings = [ { type: "context", - runtimeBinding: `${safeState}.${makePropSafe("row")}`, - readableBinding: "Rows", + runtimeBinding: `${safeState}`, + readableBinding: "Row Selection.Rows", }, ] - - return bindings } return bindings } diff --git a/packages/client/src/utils/enrichDataBinding.js b/packages/client/src/utils/enrichDataBinding.js index 34bfb78539..9b41040518 100644 --- a/packages/client/src/utils/enrichDataBinding.js +++ b/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. */ export const enrichDataBindings = (props, context) => { + console.log(props) + console.log(context) + return processObjectSync(cloneDeep(props), context) }