default to reverse chronological sorting in the table (so users see their newest tracks on top). Fixes #350

This commit is contained in:
gluap 2023-07-08 13:17:48 +02:00
parent b9c9a61ca1
commit 4ebffc529f
No known key found for this signature in database

View file

@ -156,7 +156,7 @@ function TrackFilters({
function TracksTable({ title }) { function TracksTable({ title }) {
const [orderBy, setOrderBy] = useState("recordedAt"); const [orderBy, setOrderBy] = useState("recordedAt");
const [reversed, setReversed] = useState(false); const [reversed, setReversed] = useState(true);
const [showFilters, setShowFilters] = useState(false); const [showFilters, setShowFilters] = useState(false);
const [filters, setFilters] = useState<Filters>({}); const [filters, setFilters] = useState<Filters>({});
const [selectedTracks, setSelectedTracks] = useState<Record<string, boolean>>( const [selectedTracks, setSelectedTracks] = useState<Record<string, boolean>>(