0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fixes problem with empty prototype navigation

This commit is contained in:
alonso.torres 2021-03-10 12:01:13 +01:00
parent 3329216e3c
commit 277ff12822
2 changed files with 5 additions and 2 deletions

View file

@ -29,6 +29,7 @@
- Fix problem with resolved comments [Taiga #1406](https://tree.taiga.io/project/penpot/issue/1406)
- Fix problem with comments styles on dashboard [Taiga #1405](https://tree.taiga.io/project/penpot/issue/1405)
- Fix problem with default square grid [Taiga #1344](https://tree.taiga.io/project/penpot/issue/1344)
- Fix error with the "Navigate to" button on prototypes [Taiga #1268](https://tree.taiga.io/project/penpot/issue/1268)
### :heart: Community contributions by (Thank you!)

View file

@ -37,7 +37,8 @@
show-frames-dropdown? (mf/use-state false)
on-set-blur #(reset! show-frames-dropdown? false)
on-navigate #(st/emit! (dw/select-shapes (d/ordered-set (:id destination))))
on-navigate #(when destination
(st/emit! (dw/select-shapes (d/ordered-set (:id destination)))))
on-select-destination
(fn [dest]
@ -77,4 +78,5 @@
[:li {:key (:id frame)
:on-click #(on-select-destination (:id frame))}
(:name frame)]))]]]
[:span.navigate-icon {on-click on-navigate} i/navigate]]]])))
[:span.navigate-icon {:style {:visibility (when (not destination) "hidden")}
:on-click on-navigate} i/navigate]]]])))