mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-30 13:30:05 +00:00
Requery on form submission
This commit is contained in:
parent
3fc37f8f4f
commit
fb56e4d3f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue