From b0c7002a5ac0c238cb843bd470c95cf102e820b2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 26 Jan 2021 15:59:58 +0000 Subject: [PATCH] Linting. --- .../builder/src/builderStore/dataBinding.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index d3db78aed1..c0447131b3 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -180,17 +180,17 @@ export function readableToRuntimeBinding(bindableProperties, textWithBindings) { const boundValues = textWithBindings.match(CAPTURE_VAR_INSIDE_TEMPLATE) || [] let result = textWithBindings for (let boundValue of boundValues) { - const binding = bindableProperties.find(({readableBinding}) => { + const binding = bindableProperties.find(({ readableBinding }) => { return boundValue.includes(readableBinding) }) let newBoundValue = INVALID_BINDING if (binding) { - newBoundValue = boundValue.replace(binding.readableBinding, binding.runtimeBinding) + newBoundValue = boundValue.replace( + binding.readableBinding, + binding.runtimeBinding + ) } - result = result.replace( - boundValue, - newBoundValue - ) + result = result.replace(boundValue, newBoundValue) } return result } @@ -210,12 +210,12 @@ export function runtimeToReadableBinding(bindableProperties, textWithBindings) { }) let newBoundValue = INVALID_BINDING if (binding) { - newBoundValue = boundValue.replace(binding.runtimeBinding, binding.readableBinding) + newBoundValue = boundValue.replace( + binding.runtimeBinding, + binding.readableBinding + ) } - result = result.replace( - boundValue, - newBoundValue - ) + result = result.replace(boundValue, newBoundValue) } return result }