Simplify implementation of d/name

This commit is contained in:
Andrey Antukh 2024-03-05 17:07:41 +01:00
parent cac785f3e1
commit afd373ffee
2 changed files with 12 additions and 13 deletions

View file

@ -209,12 +209,12 @@
[:div {:class (stl/css :contraints-selects)}
[:div {:class (stl/css :horizontal-select)}
[:& select
{:default-value (d/name constraints-h "scale")
{:default-value (d/nilv (d/name constraints-h) "scale")
:options options-h
:on-change on-constraint-h-select-changed}]]
[:div {:class (stl/css :vertical-select)}
[:& select
{:default-value (d/name constraints-v "scale")
{:default-value (d/nilv (d/name constraints-v) "scale")
:options options-v
:on-change on-constraint-v-select-changed}]]
(when first-level?