Removed async from select map modal setting change functions

This commit is contained in:
Mitchell McCaffrey 2020-06-28 15:44:06 +10:00
parent c6a9455e8f
commit 761bf8e800

View File

@ -178,11 +178,11 @@ function SelectMapModal({
const [mapSettingChanges, setMapSettingChanges] = useState({});
const [mapStateSettingChanges, setMapStateSettingChanges] = useState({});
async function handleMapSettingsChange(key, value) {
function handleMapSettingsChange(key, value) {
setMapSettingChanges((prevChanges) => ({ ...prevChanges, [key]: value }));
}
async function handleMapStateSettingsChange(key, value) {
function handleMapStateSettingsChange(key, value) {
setMapStateSettingChanges((prevChanges) => ({
...prevChanges,
[key]: value,