Skip to content

Commit

Permalink
remove optional chaining in blockProps
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Nov 27, 2020
1 parent fd18f3a commit 39741af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Edit = (props) => {
const [selectedBlock, setSelectedBlock] = useState({});
React.useEffect(() => {
properties.blocks_layout.items.map((item) => {
if (isEmpty(properties?.blocks[item].blocks)) {
if (isEmpty(properties.blocks[item].blocks)) {
return onChangeBlock(block, {
...data,
data: {
Expand Down

0 comments on commit 39741af

Please sign in to comment.