fix: register playCount column in backend AllColumnIDs + rename to 'Play Count'

Backend validation rejected 'playCount' as unknown column ID, silently
preventing it from being enabled or persisted. Added ColPlayCount to
the tracklist package's constant list and AllColumnIDs slice.
This commit is contained in:
yonlu committed 2026-03-21 22:53:52 -04:00
1 parent 2db6e09aa3
commit e1bfe12903
2 files changed
+4 -2

No files matched your search

@@ -188,10 +188,10 @@ export const COLUMN_DEFS: Record<string, ColumnDef> = {
},
playCount: {
id: 'playCount',
label: 'Plays',
label: 'Play Count',
accessor: (t) =>
t.PlayCount ? String(t.PlayCount) : '',
defaultWidth: '60px',
defaultWidth: '80px',
align: 'right',
comparator: (a, b) =>
compareNum(a.PlayCount, b.PlayCount),