forked from Github/frigate
Fix webUI success / error messages (#7820)
* Fix export error handling * Ensure that config editor success / error is updated each time * Set response * Formatting
This commit is contained in:
@@ -58,7 +58,7 @@ export default function Export() {
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.response) {
|
||||
if (error.response?.data?.message) {
|
||||
setMessage({ text: `Failed to start export: ${error.response.data.message}`, error: true });
|
||||
} else {
|
||||
setMessage({ text: `Failed to start export: ${error.message}`, error: true });
|
||||
|
||||
Reference in New Issue
Block a user