mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Fixes not being able to set dummy epg.
This commit is contained in:
parent
70c9ffe195
commit
cc4b0d557f
1 changed files with 1 additions and 10 deletions
|
|
@ -115,20 +115,11 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
|
|||
// Use the special endpoint to set EPG and trigger refresh
|
||||
const epgResponse = await API.setChannelEPG(channel.id, values.epg_data_id);
|
||||
|
||||
// Show notification about EPG status if available
|
||||
if (epgResponse && epgResponse.task_status) {
|
||||
notifications.show({
|
||||
title: 'EPG Status',
|
||||
message: epgResponse.task_status,
|
||||
color: 'blue'
|
||||
});
|
||||
}
|
||||
|
||||
// Remove epg_data_id from values since we've handled it separately
|
||||
const { epg_data_id, ...otherValues } = formattedValues;
|
||||
|
||||
// Update other channel fields if needed
|
||||
if (Object.keys(otherValues).length > 0 && !channel.hasEqualValues(otherValues)) {
|
||||
if (Object.keys(otherValues).length > 0) {
|
||||
response = await API.updateChannel({
|
||||
id: channel.id,
|
||||
...otherValues,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue