Fixes widgets not being dropped in the canvas (#1075)

This commit is contained in:
Arpit 2021-10-15 10:22:40 +05:30 committed by GitHub
parent af5804776e
commit a42f1278d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ export const Container = ({
return (
<div ref={drop} style={styles} className={`real-canvas ${isDragging || isResizing ? 'show-grid' : ''}`}>
{Object.keys(boxes).forEach((key) => {
{Object.keys(boxes).map((key) => {
const box = boxes[key];
const canShowInCurrentLayout =
box.component.definition.others[currentLayout === 'mobile' ? 'showOnMobile' : 'showOnDesktop'].value;