mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-08-03 23:32:31 +00:00
bugfix - fixed data structure for channel groups
This commit is contained in:
parent
ee90a1edb9
commit
d6f9b41b3e
1 changed files with 1 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ import useChannelsStore from '../../store/channels';
|
|||
const Stream = ({ stream = null, isOpen, onClose }) => {
|
||||
const streamProfiles = useStreamProfilesStore((state) => state.profiles);
|
||||
const { channelGroups } = useChannelsStore();
|
||||
const [selectedStreamProfile, setSelectedStreamProfile] = useState('');
|
||||
|
||||
const formik = useFormik({
|
||||
initialValues: {
|
||||
|
|
@ -85,7 +84,7 @@ const Stream = ({ stream = null, isOpen, onClose }) => {
|
|||
formik.setFieldValue('channel_group', value); // Update Formik's state with the new value
|
||||
}}
|
||||
error={formik.errors.channel_group}
|
||||
data={channelGroups.map((group) => ({
|
||||
data={Object.values(channelGroups).map((group) => ({
|
||||
label: group.name,
|
||||
value: `${group.id}`,
|
||||
}))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue