diff --git a/src/commands/list.command.ts b/src/commands/list.command.ts index 27ed8199444..f44b659b31f 100644 --- a/src/commands/list.command.ts +++ b/src/commands/list.command.ts @@ -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) {