mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Fix exact match of diff adding nil attrs group and crashing the app
This commit is contained in:
parent
ac27f95091
commit
68b32448d1
1 changed files with 6 additions and 6 deletions
|
@ -66,14 +66,14 @@
|
|||
(fn [acc [attrs v]]
|
||||
(cond
|
||||
(some attrs #{:rx :ry}) (let [[_ a b] (data/diff #{:rx :ry} attrs)]
|
||||
(assoc acc
|
||||
a v
|
||||
b v))
|
||||
(cond-> (assoc acc b v)
|
||||
;; Exact match in attrs
|
||||
a (assoc a v)))
|
||||
|
||||
(some attrs #{:widht :height}) (let [[_ a b] (data/diff #{:width :height} attrs)]
|
||||
(assoc acc
|
||||
a v
|
||||
b v))
|
||||
(cond-> (assoc acc b v)
|
||||
;; Exact match in attrs
|
||||
a (assoc a v)))
|
||||
(some attrs ctt/spacing-keys) (let [[_ rst gap] (data/diff #{:row-gap :column-gap} attrs)
|
||||
[_ position padding] (data/diff #{:p1 :p2 :p3 :p4} rst)]
|
||||
(cond-> acc
|
||||
|
|
Loading…
Add table
Reference in a new issue