mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-12 06:51:14 +03:00
Clear child pending data on undo
This commit is contained in:
parent
ac088e8439
commit
87753393bf
@ -325,7 +325,10 @@ export default function DetectorsAndModelSettingsView(
|
|||||||
}, [state, snapshot, globalMutate, t]);
|
}, [state, snapshot, globalMutate, t]);
|
||||||
|
|
||||||
const onUndo = useCallback(() => {
|
const onUndo = useCallback(() => {
|
||||||
if (snapshot) setState(snapshot);
|
if (snapshot) {
|
||||||
|
setState(snapshot);
|
||||||
|
setChildPending({});
|
||||||
|
}
|
||||||
}, [snapshot]);
|
}, [snapshot]);
|
||||||
|
|
||||||
if (!config || !state) {
|
if (!config || !state) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user