Skip to content

Commit

Permalink
temporarily disable routing to default site
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertschuler committed Mar 21, 2024
1 parent 5ab5bf4 commit fb8d153
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/sites/[slug]/[p].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ export default function Donate({
React.useEffect(() => {
console.log('project', project, 'geoJson', geoJson, 'plantLocations', plantLocations, router.query.site, router.query.ploc);
if (project && geoJson && !router.query.site && !router.query.ploc) {
router.push(
`/${project.slug}?site=${geoJson.features[0].properties.id}`
);
console.log('geoJson.features[0].properties.id', geoJson.features[0].properties.id);
// router.push(`/${project.slug}?site=${geoJson.features[0].properties.id}`);
}
//for selecting one of the site of project if user use link to directly visit to site from home page
if (project && geoJson && router.query.site) {
Expand Down

0 comments on commit fb8d153

Please sign in to comment.