From 1d04e0a9be05ab3654fc60b52cd950ed8f05f701 Mon Sep 17 00:00:00 2001 From: Suraj Air Date: Thu, 2 May 2024 09:43:34 +0530 Subject: [PATCH] fix: show props edit fields if data binding is not available --- package.json | 2 +- src/core/components/settings/BlockSettings.tsx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8e722c1f..2e344df4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Suraj Air", "license": "BSD-3-Clause", "homepage": "https://chaibuilder.com", - "version": "1.1.1", + "version": "1.1.2", "type": "module", "repository": { "type": "git", diff --git a/src/core/components/settings/BlockSettings.tsx b/src/core/components/settings/BlockSettings.tsx index dafeffc7..fd09d685 100644 --- a/src/core/components/settings/BlockSettings.tsx +++ b/src/core/components/settings/BlockSettings.tsx @@ -107,11 +107,10 @@ export default function BlockSettings() { const staticContentProperties = useMemo(() => { const controls = cloneDeep(get(coreBlock, "props", {})) as { [key: string]: ChaiControlDefinition }; - each(bindingProps, (key) => { - delete controls[key]; - }); + if (!dataBindingSupported) return controls; + each(bindingProps, (key) => delete controls[key]); return controls; - }, [coreBlock, bindingProps]); + }, [coreBlock, bindingProps, dataBindingSupported]); return (