mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 09:06:06 +00:00
default null for stream profiles
This commit is contained in:
parent
d7927052c7
commit
78253a42e2
1 changed files with 8 additions and 6 deletions
|
|
@ -60,7 +60,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
|
|||
name: '',
|
||||
channel_number: '',
|
||||
channel_group_id: '',
|
||||
stream_profile_id: '0',
|
||||
stream_profile_id: null,
|
||||
tvg_id: '',
|
||||
tvg_name: '',
|
||||
},
|
||||
|
|
@ -104,7 +104,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
|
|||
name: channel.name,
|
||||
channel_number: channel.channel_number,
|
||||
channel_group_id: channel.channel_group?.id,
|
||||
stream_profile_id: channel.stream_profile_id || '0',
|
||||
stream_profile_id: channel.stream_profile_id,
|
||||
tvg_id: channel.tvg_id,
|
||||
tvg_name: channel.tvg_name,
|
||||
});
|
||||
|
|
@ -307,10 +307,12 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
|
|||
? formik.touched.stream_profile_id
|
||||
: ''
|
||||
}
|
||||
data={streamProfiles.map((option) => ({
|
||||
value: `${option.id}`,
|
||||
label: option.name,
|
||||
}))}
|
||||
data={[{ value: null, label: '(use default)' }].concat(
|
||||
streamProfiles.map((option) => ({
|
||||
value: `${option.id}`,
|
||||
label: option.name,
|
||||
}))
|
||||
)}
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue