Fix render-loop after token was deleted

This commit is contained in:
Florian Schroedl 2024-07-24 16:05:43 +02:00
parent 37bef1e2ea
commit cb942996a9

View file

@ -324,6 +324,7 @@
:ref dropdown-ref :ref dropdown-ref
:style {:top top :left left} :style {:top top :left left}
:on-context-menu prevent-default} :on-context-menu prevent-default}
[:ul {:class (stl/css :context-list)} (when token
[:& menu-tree {:token token [:ul {:class (stl/css :context-list)}
:selected-shapes selected-shapes}]]]])) [:& menu-tree {:token token
:selected-shapes selected-shapes}]])]]))