mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
alova updates #4
This commit is contained in:
@@ -33,7 +33,7 @@ export const alovaInstance = createAlova({
|
||||
},
|
||||
|
||||
responded: {
|
||||
onSuccess: async (response, method) => {
|
||||
onSuccess: async (response) => {
|
||||
if (response.status === 400) {
|
||||
throw new Error('Invalid command');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user