🐛 Avoid crash on empty string in interaction prototype (#6687)

Fixes #6469

Using `uuid/parse` caused a crash when "Relative to" field was set to "auto",
producing an empty string. This change uses `uuid/parse*` instead, which safely
returns nil for invalid or empty inputs, preventing the crash.

Signed-off-by: Dmitriy Mikheev <mirakernel.disroot.org>
Co-authored-by: kira <kira@kira.kira>
This commit is contained in:
mirakernel 2025-06-16 13:18:59 +00:00 committed by Andrey Antukh
parent 2af1feafb6
commit 409ff31c30

View file

@ -258,7 +258,7 @@
(mf/use-fn
(mf/deps index update-interaction)
(fn [event]
(let [value (uuid/parse event)]
(let [value (uuid/parse* event)]
(update-interaction index #(ctsi/set-position-relative-to % value)))))
change-preserve-scroll