From d6f9b41b3e76061b143220be40af74c0ff6ca8d5 Mon Sep 17 00:00:00 2001 From: dekzter Date: Tue, 25 Mar 2025 11:18:08 -0400 Subject: [PATCH] bugfix - fixed data structure for channel groups --- frontend/src/components/forms/Stream.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/forms/Stream.jsx b/frontend/src/components/forms/Stream.jsx index 05720b34..e30ed618 100644 --- a/frontend/src/components/forms/Stream.jsx +++ b/frontend/src/components/forms/Stream.jsx @@ -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}`, }))}