From e4496f40ac2c084bc327e61f3b7e2703583c856c Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 5 Apr 2025 15:06:39 -0500 Subject: [PATCH] Sort by channel number by default. --- frontend/src/components/tables/ChannelsTable.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/tables/ChannelsTable.jsx b/frontend/src/components/tables/ChannelsTable.jsx index 58d35427..13fec6d7 100644 --- a/frontend/src/components/tables/ChannelsTable.jsx +++ b/frontend/src/components/tables/ChannelsTable.jsx @@ -180,7 +180,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(); @@ -237,7 +237,7 @@ const CreateProfilePopover = ({}) => { ); }; -const ChannelsTable = ({}) => { +const ChannelsTable = ({ }) => { const { channels, isLoading: channelsLoading, @@ -520,7 +520,7 @@ const ChannelsTable = ({}) => { const rowVirtualizerInstanceRef = useRef(null); const [isLoading, setIsLoading] = useState(true); - const [sorting, setSorting] = useState([]); + const [sorting, setSorting] = useState([{ id: 'channel_number', desc: false }]); const editChannel = async (ch = null) => { setChannel(ch);