mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
Update sorting in ChannelsTable to include name alongside channel number
This commit is contained in:
parent
e4496f40ac
commit
e8fdd88bca
1 changed files with 6 additions and 3 deletions
|
|
@ -520,7 +520,10 @@ const ChannelsTable = ({ }) => {
|
|||
const rowVirtualizerInstanceRef = useRef(null);
|
||||
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [sorting, setSorting] = useState([{ id: 'channel_number', desc: false }]);
|
||||
const [sorting, setSorting] = useState([
|
||||
{ id: 'channel_number', desc: false },
|
||||
{ id: 'name', desc: false }
|
||||
]);
|
||||
|
||||
const editChannel = async (ch = null) => {
|
||||
setChannel(ch);
|
||||
|
|
@ -719,11 +722,11 @@ const ChannelsTable = ({ }) => {
|
|||
sorting: [
|
||||
{
|
||||
id: 'channel_number',
|
||||
desc: true,
|
||||
desc: false,
|
||||
},
|
||||
{
|
||||
id: 'name',
|
||||
desc: true,
|
||||
desc: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue