mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Move addMessage to finally block
This commit is contained in:
parent
82965f1724
commit
4ab50a5743
@ -131,12 +131,6 @@ export default function FrigatePlusSettingsView({
|
||||
position: "top-center",
|
||||
});
|
||||
setChangedValue(false);
|
||||
addMessage(
|
||||
"plus_restart",
|
||||
"Restart required (Frigate+ model changed)",
|
||||
undefined,
|
||||
"plus_restart",
|
||||
);
|
||||
updateConfig();
|
||||
} else {
|
||||
toast.error(
|
||||
@ -160,6 +154,12 @@ export default function FrigatePlusSettingsView({
|
||||
);
|
||||
})
|
||||
.finally(() => {
|
||||
addMessage(
|
||||
"plus_restart",
|
||||
"Restart required (Frigate+ model changed)",
|
||||
undefined,
|
||||
"plus_restart",
|
||||
);
|
||||
setIsLoading(false);
|
||||
});
|
||||
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user