mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
65717: Edit-bitstreams fetch all bundles and expandable bitstream list
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PipeTransform, Pipe } from '@angular/core';
|
||||
import { hasValue } from '../empty.util';
|
||||
import { hasValue, isNotEmpty } from '../empty.util';
|
||||
|
||||
@Pipe({name: 'dsObjectValues'})
|
||||
/**
|
||||
@@ -13,7 +13,9 @@ export class ObjectValuesPipe implements PipeTransform {
|
||||
*/
|
||||
transform(value, args:string[]): any {
|
||||
const values = [];
|
||||
Object.values(value).forEach((v) => values.push(v));
|
||||
if (isNotEmpty(value)) {
|
||||
Object.values(value).forEach((v) => values.push(v));
|
||||
}
|
||||
return values;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user