mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 13:36:39 +02:00
🐛 Fix externs bug on production build.
This commit is contained in:
parent
f38806eeb2
commit
69bb359615
3 changed files with 7 additions and 3 deletions
|
@ -22,14 +22,14 @@
|
|||
[_, drop] (rdnd/useDrop
|
||||
#js {:accept type
|
||||
:hover (fn [item monitor]
|
||||
(when (.-current ref)
|
||||
(when (unchecked-get ref "current")
|
||||
(on-hover (unchecked-get item "data") monitor)))
|
||||
:drop (fn [item monitor]
|
||||
(when (.-current ref)
|
||||
(when (unchecked-get ref "current")
|
||||
(on-drop (unchecked-get item "data") monitor)))})
|
||||
[props, drag] (rdnd/useDrag
|
||||
#js {:item #js {:type type :data data}
|
||||
:collect (fn [monitor]
|
||||
:collect (fn [^js/ReactDnd.Monitor monitor]
|
||||
#js {:dragging? (.isDragging monitor)})})]
|
||||
[(mfu/obj->map props)
|
||||
(drag (drop ref))]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue