Skip to content

Commit

Permalink
fix: use menuItems instead of apiPoiProperties on CategorySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 26, 2024
1 parent 2645fa1 commit 8d80a11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/Home/Embedded.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { FitBoundsOptions } from 'maplibre-gl'
import { mapActions } from 'pinia'
import { mapActions, mapState } from 'pinia'
import { defineNuxtComponent, useRequestHeaders } from '#app'
import HomeMixin from '~/components/Home/HomeMixin'
Expand All @@ -26,6 +26,7 @@ export default defineNuxtComponent({
mixins: [HomeMixin],
computed: {
...mapState(menuStore, ['menuItems']),
fitBoundsPaddingOptions(): FitBoundsOptions['padding'] {
return {
top: 100,
Expand Down Expand Up @@ -146,7 +147,7 @@ export default defineNuxtComponent({
:boundary-area="boundaryArea || settings.polygon.data"
/>
<CategorySelector
:menu-items="Object.values(apiMenuCategory || {})"
:menu-items="menuItems || []"
label="categorySelector.placeholderAdd"
class="tw-p-4 tw-absolute tw-z-1 tw-w-full"
@category-change="onMenuChange"
Expand Down

0 comments on commit 8d80a11

Please sign in to comment.