Skip to content

Commit 9138b73

Browse files
nick-livefrontvlad-trofimov
authored andcommitted
Fix SDK typings (bitwarden#16223)
* fix SDK typings for `uuidAsString` * add `load_flags` to mock SDK instance
1 parent c3975c4 commit 9138b73

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/common/src/platform/services/sdk/default-sdk.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ function createMockClient(): MockProxy<BitwardenClient> {
232232
client.platform.mockReturnValue({
233233
state: jest.fn().mockReturnValue(mock()),
234234
free: mock(),
235+
load_flags: jest.fn(),
235236
});
236237
return client;
237238
}

libs/vault/src/services/copy-cipher-field.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export class CopyCipherFieldService {
145145
if (action.event !== undefined) {
146146
await this.eventCollectionService.collect(
147147
action.event,
148-
uuidAsString(cipher.id),
148+
cipher.id ? uuidAsString(cipher.id) : undefined,
149149
false,
150-
uuidAsString(cipher.organizationId),
150+
cipher.organizationId ? uuidAsString(cipher.organizationId) : undefined,
151151
);
152152
}
153153

0 commit comments

Comments
 (0)