mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Ensure vector
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
(let [exists? (some (partial = id) token-set-groups)]
|
(let [exists? (some (partial = id) token-set-groups)]
|
||||||
(cond
|
(cond
|
||||||
exists? token-set-groups
|
exists? token-set-groups
|
||||||
(nil? index) (conj token-set-groups id)
|
(nil? index) (conj (or token-set-groups []) id)
|
||||||
:else (d/insert-at-index token-set-groups index [id])))))
|
:else (d/insert-at-index token-set-groups index [id])))))
|
||||||
(update :token-sets-index assoc id token-set)))
|
(update :token-sets-index assoc id token-set)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user