From b89dc759be1541ad7226f37eb6f350f5877d7ccd Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 25 Jun 2024 16:36:21 +0200 Subject: [PATCH] Cleanup --- frontend/src/app/main/ui/workspace/tokens/form.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/form.cljs b/frontend/src/app/main/ui/workspace/tokens/form.cljs index e516741257..2dba0f70c5 100644 --- a/frontend/src/app/main/ui/workspace/tokens/form.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/form.cljs @@ -126,7 +126,8 @@ (mf/deps tokens) (fn [] (-> (into #{} (map (fn [[_ {:keys [name]}]] name) tokens)) - ;; Allow setting token to already used name + ;; Remove the currently editing token name, + ;; as we don't want it to show when checking for duplicate names. (disj (:name token))))) ;; Name