From b7fc86ba2cb07efa00e56c9d5536fc767166cfb5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Mon, 1 Feb 2021 19:50:39 +0100 Subject: [PATCH] 17306: Removed userUuid from group call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- src/services/favorite-service/favorite-service.ts | 4 ++-- src/store/tree-picker/tree-picker-actions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/favorite-service/favorite-service.ts b/src/services/favorite-service/favorite-service.ts index fbb2a52f44..fce81004af 100644 --- a/src/services/favorite-service/favorite-service.ts +++ b/src/services/favorite-service/favorite-service.ts @@ -45,7 +45,7 @@ export class FavoriteService { results.items.map(item => this.linkService.delete(item.uuid)))); } - list(userUuid: string, { filters, limit, offset, linkOrder, contentOrder }: FavoriteListArguments = {}): Promise> { + list(userUuid: string, { filters, limit, offset, linkOrder, contentOrder }: FavoriteListArguments = {}, showOnlyOwned: boolean = true): Promise> { const listFilters = new FilterBuilder() .addEqual('owner_uuid', userUuid) .addEqual('link_class', LinkClass.STAR) @@ -60,7 +60,7 @@ export class FavoriteService { }) .then(results => { const uuids = results.items.map(item => item.headUuid); - return this.groupsService.contents(userUuid, { + return this.groupsService.contents(showOnlyOwned ? userUuid : '', { limit, offset, order: contentOrder, diff --git a/src/store/tree-picker/tree-picker-actions.ts b/src/store/tree-picker/tree-picker-actions.ts index 3fa5187a3d..08f356f031 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -248,7 +248,7 @@ export const loadFavoritesProject = (params: LoadFavoritesProjectParams) => fb => fb.getFilters(), )(new FilterBuilder()); - const { items } = await services.favoriteService.list(uuid, { filters }); + const { items } = await services.favoriteService.list(uuid, { filters }, false); dispatch(receiveTreePickerData({ id: 'Favorites', -- 2.30.2