]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/filter.pipe.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / pipes / filter.pipe.ts
index 7425183f4b1d4720a0f83bfaa111f1360af7c641..313ac4c0dc2db83c0683e4306a3f625abd00ab35 100644 (file)
@@ -5,12 +5,12 @@ import { Pipe, PipeTransform } from '@angular/core';
 })
 export class FilterPipe implements PipeTransform {
   transform(value: any, args?: any): any {
-    return value.filter((row) => {
+    return value.filter((row: any) => {
       let result = true;
 
-      args.forEach((filter) => {
+      args.forEach((filter: any): boolean | void => {
         if (!filter.value) {
-          return;
+          return undefined;
         }
 
         result = result && filter.applyFilter(row, filter.value);