From 5e5da47585829f440fca698fb3b107d133be08e9 Mon Sep 17 00:00:00 2001 From: Nik Gilmore Date: Fri, 2 Jan 2026 16:31:57 -0800 Subject: [PATCH] Fix typescript errors impacted by this chnage --- libs/common/src/vault/models/view/cipher.view.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/common/src/vault/models/view/cipher.view.ts b/libs/common/src/vault/models/view/cipher.view.ts index c44a4021a43..d047ab788f9 100644 --- a/libs/common/src/vault/models/view/cipher.view.ts +++ b/libs/common/src/vault/models/view/cipher.view.ts @@ -361,7 +361,7 @@ export class CipherView implements View, InitializerMetadata { */ toSdkUpdateCipherRequest(): CipherEditRequest { const sdkCipherEditRequest: CipherEditRequest = { - id: this.id ? asUuid(this.id) : undefined, + id: asUuid(this.id), organizationId: this.organizationId ? asUuid(this.organizationId) : undefined, folderId: this.folderId ? asUuid(this.folderId) : undefined, name: this.name ?? "", @@ -382,7 +382,7 @@ export class CipherView implements View, InitializerMetadata { /** * Returns the SDK CipherViewType object for the cipher. * - * @returns {CipherViewType} The SDK CipherViewType for the cipher. + * @returns {CipherViewType} The SDK CipherViewType for the cipher.t */ getSdkCipherViewType(): CipherViewType { let viewType: CipherViewType; @@ -403,6 +403,10 @@ export class CipherView implements View, InitializerMetadata { viewType = { sshKey: this.sshKey?.toSdkSshKeyView() }; break; default: + viewType = { + // Default to empty login - should not be valid code path. + login: new LoginView().toSdkLoginView(), + }; break; } return viewType;