Skip to content

Commit 98a2706

Browse files
committed
bad error check
1 parent 678cc14 commit 98a2706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/connect-react/src/utils/component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ export function valuesFromOptions<T>(value: unknown | T[] | PropOptions<T>): T[]
3333
results.push(emitValue.__lv.value)
3434
}
3535
results.push(emitValue)
36+
} else {
37+
throw "unexpected value"
3638
}
37-
throw "unexpected value"
3839
}
3940
}
4041
if (!Array.isArray(value))

0 commit comments

Comments
 (0)