mirror of
https://github.com/bitwarden/jslib
synced 2025-12-30 15:13:22 +00:00
Remove errors when cipher type is unknown
This commit is contained in:
@@ -75,7 +75,7 @@ export class CipherView implements View {
|
||||
}
|
||||
|
||||
get subTitle(): string {
|
||||
return this.item.subTitle;
|
||||
return this.item?.subTitle;
|
||||
}
|
||||
|
||||
get hasPasswordHistory(): boolean {
|
||||
@@ -115,7 +115,7 @@ export class CipherView implements View {
|
||||
}
|
||||
|
||||
get linkedFieldOptions() {
|
||||
return this.item.linkedFieldOptions;
|
||||
return this.item?.linkedFieldOptions;
|
||||
}
|
||||
|
||||
linkedFieldValue(id: LinkedIdType) {
|
||||
|
||||
@@ -1225,7 +1225,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
);
|
||||
return;
|
||||
default:
|
||||
throw new Error("Unknown cipher type.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user