mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Set rating value to 0 when value is null (#2824)
This commit is contained in:
parent
5125558f52
commit
3a9b3452a2
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export const RatingField = ({
|
|||
|
||||
const handleRating = useCallback(
|
||||
(e, val) => {
|
||||
rate(val, e.target.name)
|
||||
rate(val ?? 0, e.target.name)
|
||||
},
|
||||
[rate],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue