Requery on form submission

This commit is contained in:
dekzter 2025-04-20 10:44:34 -04:00
parent 3fc37f8f4f
commit fb56e4d3f5

View file

@ -155,6 +155,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
console.error('Error saving channel:', error);
}
API.requeryChannels();
setSubmitting(false);
setTvgFilter('');
setLogoFilter('');
@ -172,7 +173,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
formik.setValues({
name: channel.name,
channel_number: channel.channel_number,
channel_group_id: `${channel.channel_group?.id}`,
channel_group_id: channel.channel_group_id ?? '',
stream_profile_id: channel.stream_profile_id
? `${channel.stream_profile_id}`
: '0',