mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix: fixed issue that caused items dropped to mobile disappear
This commit is contained in:
parent
4dfe3bae4c
commit
f17244c346
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue