Skip to content

Commit

Permalink
Fixes Dashboard crash on quick-menu escape (#4166)
Browse files Browse the repository at this point in the history
* crash-fix#3933

* Update changesets based deployments
  • Loading branch information
itsjainrishi authored Sep 15, 2023
1 parent ba5e459 commit 42c5efe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twenty-rivers-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

fix dashboard-crash on quickmenu escape
2 changes: 1 addition & 1 deletion src/components/Navigator/Navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Navigator: React.FC<NavigatorProps> = ({ visible, setVisibility }) => {
item ? item.label : ""
}
onSelect={(item: QuickSearchAction) => {
const shouldRemainVisible = item.onClick();
const shouldRemainVisible = item?.onClick();
if (!shouldRemainVisible) {
setVisibility(false);
}
Expand Down

0 comments on commit 42c5efe

Please sign in to comment.