From dcafcc13206c472cbacce5535003b6cc6f190e0a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 10 Oct 2023 07:23:18 -0600 Subject: [PATCH] Fix Config success message (#8121) * Fix saved message * Fix save mask --- web/src/routes/CameraMap.jsx | 2 +- web/src/routes/Config.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/routes/CameraMap.jsx b/web/src/routes/CameraMap.jsx index a508d80b2..6beaff2f5 100644 --- a/web/src/routes/CameraMap.jsx +++ b/web/src/routes/CameraMap.jsx @@ -135,7 +135,7 @@ export default function CameraMasks({ camera }) { const endpoint = `config/set?${queryParameters}`; const response = await axios.put(endpoint); if (response.status === 200) { - setSuccess(response.data); + setSuccess(response.data.message); } } catch (error) { if (error.response) { diff --git a/web/src/routes/Config.jsx b/web/src/routes/Config.jsx index 33354b30b..21d2160a7 100644 --- a/web/src/routes/Config.jsx +++ b/web/src/routes/Config.jsx @@ -29,7 +29,7 @@ export default function Config() { .then((response) => { if (response.status === 200) { setError(''); - setSuccess(response.data); + setSuccess(response.data.message); } }) .catch((error) => {