diff --git a/packages/nextclade-web/src/state/persist/localStorage.ts b/packages/nextclade-web/src/state/persist/localStorage.ts index dc9142d4a..02555102f 100644 --- a/packages/nextclade-web/src/state/persist/localStorage.ts +++ b/packages/nextclade-web/src/state/persist/localStorage.ts @@ -2,5 +2,5 @@ import { recoilPersist } from 'recoil-persist' import { PROJECT_NAME } from 'src/constants' export const { persistAtom } = recoilPersist({ - key: `${PROJECT_NAME}-storage-v4`, // increment this version on breaking changes + key: `${PROJECT_NAME}-storage-v5`, // increment this version on breaking changes }) diff --git a/packages/nextclade/src/io/nextclade_csv.rs b/packages/nextclade/src/io/nextclade_csv.rs index f52b8e916..4d536d9e4 100644 --- a/packages/nextclade/src/io/nextclade_csv.rs +++ b/packages/nextclade/src/io/nextclade_csv.rs @@ -108,10 +108,9 @@ impl CsvColumnConfig { let categories = categories .into_iter() - .filter(|category| !matches!(category, CsvColumnCategory::Dynamic)) // Dynamic columns are handled specially - .map(|category| { - let columns = CSV_COLUMN_CONFIG_MAP_DEFAULT.get(&category).unwrap().clone(); - (category, columns) + .filter_map(|category| { + let columns = CSV_COLUMN_CONFIG_MAP_DEFAULT.get(&category)?.clone(); + Some((category, columns)) }) .collect(); @@ -356,7 +355,7 @@ fn rel_mut_cols(desc: &AuspiceRefNodeSearchDesc) -> [String; 5] { } fn insert_after(v: &mut Vec, index: usize, val: T) { - if index > v.len() { + if index >= v.len() { v.push(val); } else { v.insert(index + 1, val);