mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-21 03:41:55 +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]);
|
||||
|
||||
const onUndo = useCallback(() => {
|
||||
if (snapshot) setState(snapshot);
|
||||
if (snapshot) {
|
||||
setState(snapshot);
|
||||
setChildPending({});
|
||||
}
|
||||
}, [snapshot]);
|
||||
|
||||
if (!config || !state) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user