Fix memory async error with map tile double click and default map selection bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user