From a49e4d8d0c0274fb3b91ab5f3a11dfb69136a602 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Wed, 3 Jul 2024 12:49:29 +0800 Subject: [PATCH] fix: panic --- src-tauri/src/enhance/seq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/enhance/seq.rs b/src-tauri/src/enhance/seq.rs index c442eea..a9a1cce 100644 --- a/src-tauri/src/enhance/seq.rs +++ b/src-tauri/src/enhance/seq.rs @@ -13,7 +13,7 @@ pub fn use_seq(seq_map: SeqMap, config: Mapping, name: &str) -> Mapping { let delete = seq_map.delete; let origin_seq = config.get(&name).map_or(Sequence::default(), |val| { - val.as_sequence().unwrap().clone() + val.as_sequence().unwrap_or(&Sequence::default()).clone() }); let mut seq = origin_seq.clone();