fix(tracker): tracker page adjustments
This commit is contained in:
parent
f2f9ad83ac
commit
9354af8cb8
|
|
@ -492,7 +492,6 @@ export default function TrackerPage() {
|
||||||
|| filters.debt
|
|| filters.debt
|
||||||
|| hasSort
|
|| hasSort
|
||||||
);
|
);
|
||||||
const searchResultLabel = `${filteredRows.length} of ${rows.length} shown`;
|
|
||||||
const searchSortLabel = hasSort ? `sorted by ${TRACKER_SORT_LABELS[sortKey]} ${sortDir === TRACKER_SORT_ASC ? 'ascending' : 'descending'}` : null;
|
const searchSortLabel = hasSort ? `sorted by ${TRACKER_SORT_LABELS[sortKey]} ${sortDir === TRACKER_SORT_ASC ? 'ascending' : 'descending'}` : null;
|
||||||
const resetFilters = () => {
|
const resetFilters = () => {
|
||||||
updateParams({ q: null, fc: null, cy: null, ap: null, b1: null, b2: null, un: null, ov: null, de: null, sort: null, dir: null });
|
updateParams({ q: null, fc: null, cy: null, ap: null, b1: null, b2: null, un: null, ov: null, de: null, sort: null, dir: null });
|
||||||
|
|
@ -549,6 +548,8 @@ export default function TrackerPage() {
|
||||||
})
|
})
|
||||||
: filteredRows;
|
: filteredRows;
|
||||||
|
|
||||||
|
const searchResultLabel = `${filteredRows.length} of ${rows.length} shown`;
|
||||||
|
|
||||||
const first = sortedRows.filter(r => r.bucket === '1st');
|
const first = sortedRows.filter(r => r.bucket === '1st');
|
||||||
const second = sortedRows.filter(r => r.bucket === '15th');
|
const second = sortedRows.filter(r => r.bucket === '15th');
|
||||||
const reorderEnabled = !hasFilters && !loading && !isError && !pinUpcoming;
|
const reorderEnabled = !hasFilters && !loading && !isError && !pinUpcoming;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue