From 78253a42e2c5ec219fa3760cf7464bb9d86e98ae Mon Sep 17 00:00:00 2001 From: dekzter Date: Wed, 19 Mar 2025 07:16:12 -0400 Subject: [PATCH] default null for stream profiles --- frontend/src/components/forms/Channel.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/forms/Channel.jsx b/frontend/src/components/forms/Channel.jsx index 89b6ac86..e59c0c2b 100644 --- a/frontend/src/components/forms/Channel.jsx +++ b/frontend/src/components/forms/Channel.jsx @@ -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, + })) + )} />