fix: play count display and live update after playback
- Column accessor shows '0' instead of empty string for unplayed tracks - recordPlay emits TrackMetadataChanged event after updating DB - Frontend library store invalidates on that event, refreshing play counts
This commit is contained in:
@@ -190,7 +190,7 @@ export const COLUMN_DEFS: Record<string, ColumnDef> = {
|
||||
id: 'playCount',
|
||||
label: 'Play Count',
|
||||
accessor: (t) =>
|
||||
t.PlayCount ? String(t.PlayCount) : '',
|
||||
String(t.PlayCount ?? 0),
|
||||
defaultWidth: '80px',
|
||||
align: 'right',
|
||||
comparator: (a, b) =>
|
||||
|
||||
Reference in New Issue
Block a user