Fixes not being able to set dummy epg.

This commit is contained in:
SergeantPanda 2025-04-15 19:46:23 -05:00
parent 70c9ffe195
commit cc4b0d557f

View file

@ -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,