18834: Fixed failing test in main
[arvados-workbench2.git] / src / services / collection-service / collection-service.ts
index a3a7cf8f3af89c88ddd7edac938719199df74cbf..0bddc82b56f41d090ce74f8d4626bf1849c9a404 100644 (file)
@@ -40,11 +40,11 @@ export class CollectionService extends TrashableResourceService<CollectionResour
             listArgs.select = select;
         }
 
-        if (session) {
+        if (!session) {
             const lst = await super.list(listArgs, showErrors);
             return lst.items[0];
         } else {
-            return super.get(uuid, showErrors, session);
+            return super.get(uuid, showErrors, select, session);
         }
     }