Skip to content

Commit

Permalink
fix: reset node attr state correctly across runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Oct 3, 2022
1 parent 8e7eb64 commit d30d608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages_rs/nextclade-web/src/state/results.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const cladeNodeAttrDescsAtom = selector<CladeNodeAttrDesc[]>({

set({ set, reset }, descs: CladeNodeAttrDesc[] | DefaultValue) {
set(cladeNodeAttrDescsStorageAtom, descs)
if (!isDefaultValue(descs)) {
if (isDefaultValue(descs)) {
reset(cladeNodeAttrDescsStorageAtom)
}
},
Expand Down

0 comments on commit d30d608

Please sign in to comment.