1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-27055] Use undefined instead of null for folder/organization filtering (#17120)

This commit is contained in:
Shane Melton
2025-10-30 13:18:32 -07:00
committed by GitHub
parent fdfcee4bc5
commit 0d543c7059

View File

@@ -102,7 +102,7 @@ export class ListCommand {
if (options.folderId === "notnull" && c.folderId != null) {
return true;
}
const folderId = options.folderId === "null" ? null : options.folderId;
const folderId = options.folderId === "null" ? undefined : options.folderId;
if (folderId === c.folderId) {
return true;
}
@@ -112,7 +112,8 @@ export class ListCommand {
if (options.organizationId === "notnull" && c.organizationId != null) {
return true;
}
const organizationId = options.organizationId === "null" ? null : options.organizationId;
const organizationId =
options.organizationId === "null" ? undefined : options.organizationId;
if (organizationId === c.organizationId) {
return true;
}