Fix error in routing via list patterns
This commit is contained in:
parent
879dbd93b8
commit
343a305be9
|
@ -69,7 +69,7 @@ function Handler(cachedCaptures) {
|
||||||
function classOf(v) {
|
function classOf(v) {
|
||||||
if (v instanceof Record) {
|
if (v instanceof Record) {
|
||||||
return v.getConstructorInfo();
|
return v.getConstructorInfo();
|
||||||
} else if (v instanceof Immutable.List) {
|
} else if (Immutable.List.isList(v)) {
|
||||||
return v.size;
|
return v.size;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue