Fix memory async error with map tile double click and default map selection bug

This commit is contained in:
Mitchell McCaffrey
2020-04-26 19:22:30 +10:00
parent 29f13262ff
commit f371a62a04
2 changed files with 12 additions and 5 deletions
+3 -2
View File
@@ -101,11 +101,12 @@ function MapTile({
bg="muted"
onClick={() => {
setIsTileMenuOpen(false);
onMapSelect(map);
if (!isSelected) {
onMapSelect(map);
}
}}
onDoubleClick={(e) => {
if (!isMapTileMenuOpen) {
onMapSelect(map);
onSubmit(e);
}
}}