Skip to content

Commit

Permalink
Hotfix map reset after H1 click
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbarbosa committed Jan 6, 2024
1 parent 68644d7 commit a1bb74a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Title.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ export const TitleElm = () => {
onclick: () => {
if (index === 0) {
setLayer(layers.capital);
setRegion(null);
setPrefecture(null);
setCity(null);
setMunicipalityAndType(null);
setTimeout(() => {
setRegion(null);
}, 1);
}
},
},
Expand Down

0 comments on commit a1bb74a

Please sign in to comment.