From d0c5cecf8eb31317ae579ca393ec03f60e144ff0 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Sun, 13 Oct 2024 20:30:19 +0200 Subject: [PATCH] Fix field type to actually be hidden In an oversight i forgot to set the type to a hidden type if converting the int was not possible. This fixes that. Signed-off-by: BlackDex --- src/db/models/cipher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index 9dc9cba531..06aa69c57c 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -186,7 +186,7 @@ impl Cipher { match f.data.get("type") { Some(t) if t.is_number() => {} Some(t) if t.is_string() => { - let type_num = &t.as_str().unwrap_or("0").parse::().unwrap_or(1); + let type_num = &t.as_str().unwrap_or("1").parse::().unwrap_or(1); f.data["type"] = json!(type_num); } _ => {