Skip to content

Commit

Permalink
fix minor bug in vue and react route exampl
Browse files Browse the repository at this point in the history
  • Loading branch information
MokujinMap committed Jul 16, 2024
1 parent 8aa7981 commit cd6d3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/route-control/react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function main() {
setFromCoords(from?.geometry?.coordinates);
setToCoords(to?.geometry?.coordinates);

if (!from && !to) {
if (!from || !to) {
setShowFeature(false);
}
setPreviewCoords(undefined);
Expand Down
2 changes: 1 addition & 1 deletion example/route-control/vue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function main() {
fromCoords.value = from?.geometry?.coordinates;
toCoords.value = to?.geometry?.coordinates;

if (!from && !to) {
if (!from || !to) {
showFeature.value = false;
}
previewCoords.value = undefined;
Expand Down

0 comments on commit cd6d3d3

Please sign in to comment.