mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix card view pipe params issue (#3015)
This commit is contained in:
committed by
Eugenio Romano
parent
dc1a17686e
commit
3df245a58a
@@ -41,7 +41,7 @@ export class CardViewTextItemModel extends CardViewBaseItemModel implements Card
|
||||
|
||||
private applyPipes(displayValue) {
|
||||
if (this.pipes.length) {
|
||||
displayValue = this.pipes.reduce((accumulator, { pipe, params }) => {
|
||||
displayValue = this.pipes.reduce((accumulator, { pipe, params = [] }) => {
|
||||
return pipe.transform(accumulator, ...params);
|
||||
}, displayValue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user