Skip to content

Commit

Permalink
fix: don't fetch inital poi if address id #365
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Dec 19, 2024
1 parent f19d23d commit d55e712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/embedded.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const { data, error, status } = await useFetch<ApiPoi>(
geometry_as: 'bbox',
short_description: false,
},
immediate: !!poiId.value,
immediate: !!poiId.value && !poiId.value.includes('_'),
},
)
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const { data, error, status } = await useFetch<ApiPoi>(
geometry_as: 'bbox',
short_description: true,
},
immediate: !!poiId.value,
immediate: !!poiId.value && !poiId.value.includes('_'),
},
)
Expand Down

0 comments on commit d55e712

Please sign in to comment.