diff --git a/src/Api/Vault/Models/Request/CipherRequestModel.cs b/src/Api/Vault/Models/Request/CipherRequestModel.cs index f784f2cd73..18a1aec559 100644 --- a/src/Api/Vault/Models/Request/CipherRequestModel.cs +++ b/src/Api/Vault/Models/Request/CipherRequestModel.cs @@ -310,10 +310,6 @@ public class CipherRequestModel ? new Dictionary() : JsonSerializer.Deserialize>(existingJson) ?? new Dictionary(); - // Remove the key from the value when: - // - new value is null - // - new value is an empty or whitespace string - // - new value is a boolean false var shouldRemove = newValue == null || (newValue is string strValue && string.IsNullOrWhiteSpace(strValue)) || (newValue is bool boolValue && !boolValue);