mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Ensure vector
This commit is contained in:
parent
bcd4b6d9ec
commit
ec01ce7550
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
(let [exists? (some (partial = id) token-set-groups)]
|
||||
(cond
|
||||
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])))))
|
||||
(update :token-sets-index assoc id token-set)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue