mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
await config update before dismissing trigger dialog
This commit is contained in:
parent
75b09a7da0
commit
1ffba7caa8
@ -198,9 +198,9 @@ export default function TriggerView({
|
||||
|
||||
return axios
|
||||
.put("config/set", configBody)
|
||||
.then((configResponse) => {
|
||||
.then(async (configResponse) => {
|
||||
if (configResponse.status === 200) {
|
||||
updateConfig();
|
||||
await updateConfig();
|
||||
const displayName =
|
||||
friendly_name && friendly_name !== ""
|
||||
? `${friendly_name} (${name})`
|
||||
@ -353,9 +353,9 @@ export default function TriggerView({
|
||||
|
||||
return axios
|
||||
.put("config/set", configBody)
|
||||
.then((configResponse) => {
|
||||
.then(async (configResponse) => {
|
||||
if (configResponse.status === 200) {
|
||||
updateConfig();
|
||||
await updateConfig();
|
||||
const friendly =
|
||||
config?.cameras?.[selectedCamera]?.semantic_search
|
||||
?.triggers?.[name]?.friendly_name;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user