parens on ORs

This commit is contained in:
Kyle Spearrin 2018-10-14 00:09:53 -04:00
parent 17d2122795
commit be1e03c49f
1 changed files with 1 additions and 1 deletions

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) {