fix: simplify play count accessor, remove right-align to debug rendering
This commit is contained in:
@@ -189,10 +189,8 @@ export const COLUMN_DEFS: Record<string, ColumnDef> = {
|
|||||||
playCount: {
|
playCount: {
|
||||||
id: 'playCount',
|
id: 'playCount',
|
||||||
label: 'Play Count',
|
label: 'Play Count',
|
||||||
accessor: (t) =>
|
accessor: (t) => t.PlayCount > 0 ? `${t.PlayCount}` : '0',
|
||||||
String(t.PlayCount ?? 0),
|
|
||||||
defaultWidth: '80px',
|
defaultWidth: '80px',
|
||||||
align: 'right',
|
|
||||||
comparator: (a, b) =>
|
comparator: (a, b) =>
|
||||||
compareNum(a.PlayCount, b.PlayCount),
|
compareNum(a.PlayCount, b.PlayCount),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user