X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/52f6efaa4834fcbcb356c3509171f95d2f1af1c7..435d259b65ca110065a96581c1d568fb3ddd205d:/src/services/common-service/common-service.ts diff --git a/src/services/common-service/common-service.ts b/src/services/common-service/common-service.ts index 07ff398a..212f2f4d 100644 --- a/src/services/common-service/common-service.ts +++ b/src/services/common-service/common-service.ts @@ -54,7 +54,7 @@ export class CommonService { .map(key => [key, mapFn(key)]) .reduce((newValue, [key, newKey]) => ({ ...newValue, - [newKey]: CommonService.mapKeys(mapFn)(value[key]) + [newKey]: (key === 'items') ? CommonService.mapKeys(mapFn)(value[key]) : value[key] }), {}); case _.isArray(value): return value.map(CommonService.mapKeys(mapFn));