From ec01ce7550c5f73c60dbbad2cb5f31d7bb79e75e Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 13 Aug 2024 14:41:18 +0200 Subject: [PATCH] Ensure vector --- common/src/app/common/types/tokens_theme_list.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/types/tokens_theme_list.cljc b/common/src/app/common/types/tokens_theme_list.cljc index 966016b02..64dab3c04 100644 --- a/common/src/app/common/types/tokens_theme_list.cljc +++ b/common/src/app/common/types/tokens_theme_list.cljc @@ -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)))