Skip to content

Commit

Permalink
fix: show custom clade columns by default
Browse files Browse the repository at this point in the history
Let's flip the boolean, so that it's natural default is `false`
  • Loading branch information
ivan-aksamentov committed Sep 29, 2022
1 parent 7f6cd6b commit 8e7eb64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 @@ -223,7 +223,7 @@ const cladeNodeAttrDescsStorageAtom = atom<CladeNodeAttrDesc[]>({
export const cladeNodeAttrDescsAtom = selector<CladeNodeAttrDesc[]>({
key: 'cladeNodeAttrDescs',
get({ get }): CladeNodeAttrDesc[] {
return get(cladeNodeAttrDescsStorageAtom).filter(({ showInWeb }) => showInWeb)
return get(cladeNodeAttrDescsStorageAtom).filter(({ hideInWeb }) => !hideInWeb)
},

set({ set, reset }, descs: CladeNodeAttrDesc[] | DefaultValue) {
Expand Down
2 changes: 1 addition & 1 deletion packages_rs/nextclade-web/src/types/auspice/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ declare module 'auspice' {
name: string
displayName: string
description: string
showInWeb: boolean
hideInWeb: boolean
}

export declare interface AuspiceMetadata {
Expand Down
2 changes: 1 addition & 1 deletion packages_rs/nextclade/src/tree/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub struct CladeNodeAttrKeyDesc {
pub display_name: String,
pub description: String,
#[serde(default)]
pub show_in_web: bool,
pub hide_in_web: bool,
}

#[derive(Clone, Serialize, Deserialize, Validate, Debug)]
Expand Down

0 comments on commit 8e7eb64

Please sign in to comment.