Skip to content

Commit 7c6e6c9

Browse files
committed
Another bug with translating options
1 parent 6805a60 commit 7c6e6c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ export function valuesFromOptions<T>(value: unknown | T[] | PropOptions<T>): T[]
3131
const emitValue = so.emitValue as T | PropOptionValue<T>
3232
if (typeof emitValue === "object" && emitValue && "__lv" in emitValue) {
3333
results.push(emitValue.__lv.value)
34+
} else {
35+
results.push(emitValue as T)
3436
}
35-
results.push(emitValue as T)
3637
} else {
3738
throw "unexpected value"
3839
}

0 commit comments

Comments
 (0)