Index: runtime/observatory/lib/src/elements/cpu_profile.dart |
diff --git a/runtime/observatory/lib/src/elements/cpu_profile.dart b/runtime/observatory/lib/src/elements/cpu_profile.dart |
index 014fd807fe2dd4345a0d379dc5fd538eb5cc04d9..75e2c0747ef5915ff638fbc1d34e313c18da80bd 100644 |
--- a/runtime/observatory/lib/src/elements/cpu_profile.dart |
+++ b/runtime/observatory/lib/src/elements/cpu_profile.dart |
@@ -131,9 +131,9 @@ class CpuProfileElement extends HtmlElement implements Renderable { |
}) |
..onFilterChange.listen((e) { |
_filter = e.element.filter.trim(); |
- tree.filter = _filter.isNotEmpty |
- ? (node) { return node.name.contains(_filter); } |
- : null; |
+ tree.filters = _filter.isNotEmpty |
+ ? [(node) { return node.name.contains(_filter); }] |
+ : const []; |
}) |
..onDirectionChange.listen((e) { |
_direction = tree.direction = e.element.direction; |