Skip to content

Commit ad000db

Browse files
committed
fix: update pipe creation and usage
1 parent f1b6410 commit ad000db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/xtream/ngx-validation-errors/src/lib/map-to-message.pipe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class MapToMessagePipe implements PipeTransform {
1717

1818
if (pipeFactory) {
1919
try {
20-
this.pipe = new pipeFactory(cdRef);
20+
this.pipe = pipeFactory(cdRef);
2121
} catch (e) {
2222
console.error(e);
2323
this.pipe = new InnerMapToMessagePipe();
@@ -27,7 +27,7 @@ export class MapToMessagePipe implements PipeTransform {
2727
}
2828
}
2929

30-
transform(value: any, args: any): any {
30+
transform(value: any, ...args: any): any {
3131
return this.pipe.transform(value, ...args);
3232
}
3333

0 commit comments

Comments
 (0)