mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fixes problem with empty prototype navigation
This commit is contained in:
parent
3329216e3c
commit
277ff12822
2 changed files with 5 additions and 2 deletions
|
@ -29,6 +29,7 @@
|
||||||
- Fix problem with resolved comments [Taiga #1406](https://tree.taiga.io/project/penpot/issue/1406)
|
- 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 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 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!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,8 @@
|
||||||
show-frames-dropdown? (mf/use-state false)
|
show-frames-dropdown? (mf/use-state false)
|
||||||
|
|
||||||
on-set-blur #(reset! show-frames-dropdown? 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
|
on-select-destination
|
||||||
(fn [dest]
|
(fn [dest]
|
||||||
|
@ -77,4 +78,5 @@
|
||||||
[:li {:key (:id frame)
|
[:li {:key (:id frame)
|
||||||
:on-click #(on-select-destination (:id frame))}
|
:on-click #(on-select-destination (:id frame))}
|
||||||
(:name 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]]]])))
|
||||||
|
|
Loading…
Reference in a new issue