Parcourir la source

fix(editor): avoid nav to block with empty uuid

Andelf il y a 3 ans
Parent
commit
de9ab536fe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/main/frontend/components/block.cljs

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -1676,7 +1676,7 @@
         (util/stop e))
 
     :else
-    (route-handler/redirect-to-page! uuid)))
+    (when uuid (route-handler/redirect-to-page! uuid))))
 
 (rum/defc block-children < rum/reactive
   [config block children collapsed?]