Skip to content

Commit 2b8206c

Browse files
committed
Update filter.js
Regarding the issue angular#10991 and the following discussion angular#10992 Solve issue with null property value when using objects with filter.
1 parent 75725b4 commit 2b8206c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/filter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function createPredicateFn(expression, comparator, matchAgainstAnyProp) {
187187
}
188188

189189
function deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {
190-
var actualType = typeof actual;
190+
var actualType = (actual !== null) ? typeof actual : 'null';
191191
var expectedType = typeof expected;
192192

193193
if ((expectedType === 'string') && (expected.charAt(0) === '!')) {

0 commit comments

Comments
 (0)