From 0266be8138b93ccc867fd36f64902a84d803ceca Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 22 Apr 2024 12:26:30 +0100 Subject: [PATCH] Quick fix - no need to double check. --- packages/builder/src/dataBinding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/dataBinding.js b/packages/builder/src/dataBinding.js index 388b2411f5..5efbb79611 100644 --- a/packages/builder/src/dataBinding.js +++ b/packages/builder/src/dataBinding.js @@ -1235,8 +1235,8 @@ const shouldReplaceBinding = (currentValue, from, convertTo, binding) => { // Don't replace if the value already matches the readable binding return currentValue.indexOf(binding.readableBinding) === -1 } else if (convertingToReadable) { - // if the runtime and readable bindings are very similar, all we can do is check runtime is there - return currentValue.indexOf(binding.runtimeBinding) !== -1 + // if the runtime and readable bindings are very similar we have to assume it should be replaced + return true } // remove all the spaces, if the input is surrounded by spaces e.g. [ Auto ID ] then // this makes sure it is detected