Fix Config success message (#8121)

* Fix saved message

* Fix save mask
This commit is contained in:
Nicolas Mowen 2023-10-10 07:23:18 -06:00 committed by GitHub
parent d508088bd0
commit dcafcc1320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ export default function CameraMasks({ camera }) {
const endpoint = `config/set?${queryParameters}`; const endpoint = `config/set?${queryParameters}`;
const response = await axios.put(endpoint); const response = await axios.put(endpoint);
if (response.status === 200) { if (response.status === 200) {
setSuccess(response.data); setSuccess(response.data.message);
} }
} catch (error) { } catch (error) {
if (error.response) { if (error.response) {

View File

@ -29,7 +29,7 @@ export default function Config() {
.then((response) => { .then((response) => {
if (response.status === 200) { if (response.status === 200) {
setError(''); setError('');
setSuccess(response.data); setSuccess(response.data.message);
} }
}) })
.catch((error) => { .catch((error) => {