mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Forgot to set generation atom (#28)
This commit is contained in:
@@ -42,7 +42,10 @@ export function withLayoutTreeState<T>(layoutNodeAtom: WritableLayoutNodeAtom<T>
|
||||
},
|
||||
(get, set, value) => {
|
||||
set(pendingActionAtom, value.pendingAction);
|
||||
if (get(generationAtom) !== value.generation) set(layoutNodeAtom, value.rootNode);
|
||||
if (get(generationAtom) !== value.generation) {
|
||||
set(generationAtom, value.generation);
|
||||
set(layoutNodeAtom, value.rootNode);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user