mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-18 09:24:19 +02:00
Prevent null value for skip
This commit is contained in:
@@ -108,6 +108,7 @@ export const PlaybackTab = () => {
|
|||||||
control: (
|
control: (
|
||||||
<FileInput
|
<FileInput
|
||||||
placeholder={mpvPath}
|
placeholder={mpvPath}
|
||||||
|
size="sm"
|
||||||
width={225}
|
width={225}
|
||||||
onChange={handleSetMpvPath}
|
onChange={handleSetMpvPath}
|
||||||
/>
|
/>
|
||||||
@@ -308,7 +309,9 @@ export const PlaybackTab = () => {
|
|||||||
...settings,
|
...settings,
|
||||||
skipButtons: {
|
skipButtons: {
|
||||||
...settings.skipButtons,
|
...settings.skipButtons,
|
||||||
skipBackwardSeconds: Number(e.currentTarget.value),
|
skipBackwardSeconds: e.currentTarget.value
|
||||||
|
? Number(e.currentTarget.value)
|
||||||
|
: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -326,7 +329,9 @@ export const PlaybackTab = () => {
|
|||||||
...settings,
|
...settings,
|
||||||
skipButtons: {
|
skipButtons: {
|
||||||
...settings.skipButtons,
|
...settings.skipButtons,
|
||||||
skipForwardSeconds: Number(e.currentTarget.value),
|
skipForwardSeconds: e.currentTarget.value
|
||||||
|
? Number(e.currentTarget.value)
|
||||||
|
: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user