Bug Fix: Creating a new channel group from within the channel create/edit form no longer wipes all filled-in form fields. (Fixes #545)

This commit is contained in:
SergeantPanda 2026-04-21 12:31:30 -05:00
parent 6d3616d524
commit 8a15f3477f
2 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- **Channel form reset on group creation**: creating a new channel group from within the channel create/edit form no longer wipes all filled-in form fields. The newly created group is also automatically selected in the channel group field after it is saved. (Fixes #545)
- **EPG channel name truncation**: EPG sources that include long `<display-name>` values (e.g. event-based channels with descriptions appended to the name) would crash the channel-parse task with a `value too long for type character varying(255)` PostgreSQL error and silently discard the entire batch. The `EPGData.name`, `Stream.name`, and `Channel.name` fields have been widened to 512 characters, and names exceeding this limit are now truncated with a warning log rather than aborting the import. (Fixes #1134)
### Added

View file

@ -293,7 +293,8 @@ const ChannelForm = ({ channel = null, isOpen, onClose }) => {
const defaultValues = useMemo(
() => getChannelFormDefaultValues(channel, channelGroups),
[channel, channelGroups]
// eslint-disable-next-line react-hooks/exhaustive-deps
[channel]
);
const {