Skip to content

Commit

Permalink
changes to useRouting.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrothwell committed Jul 12, 2024
1 parent 5cd425c commit 1ecda0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/useRouting.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default function useRouting() {
} else {
router.push({ name: 'address', params: { address: MainStore.currentAddress } });
}
} else if (MainStore.lastClickCoords == 'mapClick' && ParcelsStore.pwd.features && ParcelsStore.pwd.features.length > 0) {
} else if (MainStore.lastSearchMethod == 'mapClick' && ParcelsStore.pwd.features && ParcelsStore.pwd.features.length > 0) {
if (import.meta.env.VITE_DEBUG) console.log('routeApp routing to address-and-topic because ParcelsStore has pwd features');
router.push({ name: 'address-and-topic', params: { address: ParcelsStore.pwd.features[0].properties.ADDRESS, topic: MainStore.currentTopic } })
router.push({ name: 'address-and-topic', params: { address: ParcelsStore.pwd.features[0].properties.ADDRESS, topic: slugify(MainStore.currentTopic) } })
} else {
router.push({ name: 'not-found' });
}
Expand Down

0 comments on commit 1ecda0b

Please sign in to comment.