Clear child pending data on undo

This commit is contained in:
Josh Hawkins 2026-05-16 11:28:08 -05:00
parent ac088e8439
commit 87753393bf

View File

@ -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) {