Skip to content

Commit

Permalink
Propagate parent metadata properties within inner forms
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Oct 6, 2020
1 parent 765b513 commit 76e2cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/manage/Blocks/Group/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './editor.less';
const Edit = (props) => {
const { block, data, onChangeBlock, pathname, selected, manage } = props;

const metadata = props.metadata || props.properties;
const properties = isEmpty(data?.data?.blocks)
? emptyBlocksForm()
: data.data;
Expand Down Expand Up @@ -40,6 +41,7 @@ const Edit = (props) => {
return (
<section className="section-block">
<BlocksForm
metadata={metadata}
properties={properties}
manage={manage}
selectedBlock={selected ? selectedBlock : null}
Expand Down

0 comments on commit 76e2cc2

Please sign in to comment.