mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
Merge pull request #1177 from Stremio/fix/discover-deeplinks-crash
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
Fix crash when no extra option is selected in Discover
This commit is contained in:
commit
9dd44a7ef1
1 changed files with 3 additions and 3 deletions
|
|
@ -54,13 +54,13 @@ const mapSelectableInputs = (discover, t) => {
|
|||
value
|
||||
})
|
||||
})),
|
||||
value: JSON.stringify({
|
||||
value: selectedExtra ? JSON.stringify({
|
||||
href: selectedExtra.deepLinks.discover,
|
||||
value: selectedExtra.value,
|
||||
}),
|
||||
}) : undefined,
|
||||
title: options.some(({ selected, value }) => selected && value === null) ?
|
||||
() => t.string(name.toUpperCase())
|
||||
: t.string(selectedExtra.value),
|
||||
: selectedExtra ? t.string(selectedExtra.value) : () => t.string(name.toUpperCase()),
|
||||
onSelect: (value) => {
|
||||
const { href } = JSON.parse(value);
|
||||
window.location = href;
|
||||
|
|
|
|||
Loading…
Reference in a new issue