Skip to content

Commit

Permalink
fix: show props edit fields if data binding is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed May 2, 2024
1 parent b8d9784 commit 1d04e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions src/core/components/settings/BlockSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="overflow-x-hidden">
Expand Down

0 comments on commit 1d04e0a

Please sign in to comment.