1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-21 00:38:44 +01:00

parens on ORs

This commit is contained in:
Kyle Spearrin 2018-10-14 00:09:53 -04:00
parent 17d2122795
commit be1e03c49f

View File

@ -72,7 +72,7 @@ export class ListCommand {
return true;
}
const collectionId = cmd.collectionid === 'null' ? null : cmd.collectionid;
if (collectionId == null && c.collectionIds == null || c.collectionIds.length === 0) {
if (collectionId == null && (c.collectionIds == null || c.collectionIds.length === 0)) {
return true;
}
if (collectionId != null && c.collectionIds != null && c.collectionIds.indexOf(collectionId) > -1) {