diff --git a/frontend/src/Editor/DragContainer.jsx b/frontend/src/Editor/DragContainer.jsx index 600986c1ec..01cc6b8c64 100644 --- a/frontend/src/Editor/DragContainer.jsx +++ b/frontend/src/Editor/DragContainer.jsx @@ -78,10 +78,10 @@ export default function DragContainer({ const childMoveableRefs = useRef([]); const [movableTargets, setMovableTargets] = useState({}); const boxList = boxes - .filter( - (box) => - box?.component?.definition?.others[currentLayout === 'mobile' ? 'showOnMobile' : 'showOnDesktop'].value === - '{{true}}' + .filter((box) => + ['{{true}}', true].includes( + box?.component?.definition?.others[currentLayout === 'mobile' ? 'showOnMobile' : 'showOnDesktop'].value + ) ) .map((box) => ({ id: box.id,