mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
Merge pull request #5391 from penpot/ladybenko-fix-uuid-bug
🐛 Fix Uuid crash
This commit is contained in:
commit
8fa334265c
2 changed files with 1 additions and 3 deletions
|
@ -94,7 +94,7 @@
|
||||||
[this]
|
[this]
|
||||||
(let [buffer (unchecked-get this "__u32_buffer")]
|
(let [buffer (unchecked-get this "__u32_buffer")]
|
||||||
(if (nil? buffer)
|
(if (nil? buffer)
|
||||||
(let [buffer (get-unsigned-parts (.-uuid ^UUID this))]
|
(let [buffer (get-unsigned-parts this)]
|
||||||
(unchecked-set this "__u32_buffer" buffer)
|
(unchecked-set this "__u32_buffer" buffer)
|
||||||
buffer)
|
buffer)
|
||||||
buffer))))
|
buffer))))
|
||||||
|
|
|
@ -153,8 +153,6 @@
|
||||||
(ShapeProxy. (.-id ^ShapeProxy self)
|
(ShapeProxy. (.-id ^ShapeProxy self)
|
||||||
nil
|
nil
|
||||||
(.-delegate ^ShapeProxy self))
|
(.-delegate ^ShapeProxy self))
|
||||||
|
|
||||||
:else
|
|
||||||
(let [delegate (.-delegate ^ShapeProxy self)
|
(let [delegate (.-delegate ^ShapeProxy self)
|
||||||
delegate' (dissoc delegate k)]
|
delegate' (dissoc delegate k)]
|
||||||
(if (identical? delegate delegate')
|
(if (identical? delegate delegate')
|
||||||
|
|
Loading…
Add table
Reference in a new issue