diff --git a/libs/common/src/models/export/field.export.ts b/libs/common/src/models/export/field.export.ts index 2aca5277f34..182080ac31b 100644 --- a/libs/common/src/models/export/field.export.ts +++ b/libs/common/src/models/export/field.export.ts @@ -40,8 +40,8 @@ export class FieldExport { return; } - this.name = safeGetString(o.name); - this.value = safeGetString(o.value); + this.name = safeGetString(o.name) ?? ""; + this.value = safeGetString(o.value) ?? ""; this.type = o.type; this.linkedId = o.linkedId; } diff --git a/libs/common/src/models/export/ssh-key.export.ts b/libs/common/src/models/export/ssh-key.export.ts index 9594c8c047b..0d872b8fb7f 100644 --- a/libs/common/src/models/export/ssh-key.export.ts +++ b/libs/common/src/models/export/ssh-key.export.ts @@ -36,8 +36,8 @@ export class SshKeyExport { return; } - this.privateKey = safeGetString(o.privateKey); - this.publicKey = safeGetString(o.publicKey); - this.keyFingerprint = safeGetString(o.keyFingerprint); + this.privateKey = safeGetString(o.privateKey) ?? ""; + this.publicKey = safeGetString(o.publicKey) ?? ""; + this.keyFingerprint = safeGetString(o.keyFingerprint) ?? ""; } }