mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
replace void with await
This commit is contained in:
@@ -156,7 +156,7 @@ const SettingsEntities: FC = () => {
|
||||
} else {
|
||||
toast.error(LL.PROBLEM_UPDATING());
|
||||
}
|
||||
void fetchEntities();
|
||||
await fetchEntities();
|
||||
} catch (error) {
|
||||
toast.error(extractErrorMessage(error, LL.PROBLEM_UPDATING()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user