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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user