removed dup var declaration

This commit is contained in:
dekzter 2025-04-05 19:23:59 -04:00
parent 00f6e7c1cd
commit 7f0c426206

View file

@ -184,7 +184,7 @@ const m3uUrlBase = `${window.location.protocol}//${window.location.host}/output/
const epgUrlBase = `${window.location.protocol}//${window.location.host}/output/epg`;
const hdhrUrlBase = `${window.location.protocol}//${window.location.host}/hdhr`;
const CreateProfilePopover = ({ }) => {
const CreateProfilePopover = ({}) => {
const [opened, setOpened] = useState(false);
const [name, setName] = useState('');
const theme = useMantineTheme();
@ -241,7 +241,7 @@ const CreateProfilePopover = ({ }) => {
);
};
const ChannelsTable = ({ }) => {
const ChannelsTable = ({}) => {
const {
channels,
isLoading: channelsLoading,
@ -313,10 +313,6 @@ const ChannelsTable = ({ }) => {
const m3uUrlRef = useRef(null);
const epgUrlRef = useRef(null);
const {
environment: { env_mode },
} = useSettingsStore();
const toggleChannelEnabled = async (channelIds, enabled) => {
if (channelIds.length == 1) {
await API.updateProfileChannel(channelIds[0], selectedProfileId, enabled);
@ -537,7 +533,7 @@ const ChannelsTable = ({ }) => {
const [isLoading, setIsLoading] = useState(true);
const [sorting, setSorting] = useState([
{ id: 'channel_number', desc: false },
{ id: 'name', desc: false }
{ id: 'name', desc: false },
]);
const editChannel = async (ch = null) => {