Skip to content

Commit

Permalink
fix: added optional chaining in LayoutTopNavigation.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick committed Dec 22, 2022
1 parent 472874f commit 3bda215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-cars-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vue-demo-store": patch
---

added optional chaining in LayoutTopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ onClickOutside(menuHtmlElement, () => (currentMenuPosition.value = null));
@mouseover="currentMenuPosition = navigationElement.id"
>
<router-link
:to="'/' + navigationElement.seoUrls[0]?.seoPathInfo"
:to="'/' + navigationElement.seoUrls?.[0]?.seoPathInfo"
class="text-base font-medium text-gray-500 hover:text-gray-900"
>
{{ getTranslatedProperty(navigationElement, "name") }}
Expand Down

0 comments on commit 3bda215

Please sign in to comment.