mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-05 12:35:35 -04:00
fix: Logic to unset-rating when currentrating is selected (#7182)
This commit is contained in:
committed by
GitHub
parent
0ddfd9caaf
commit
5e40fed623
@@ -84,10 +84,14 @@ export default defineNuxtComponent({
|
||||
});
|
||||
|
||||
function updateRating(val?: number) {
|
||||
if (!isOwnGroup.value || !val) {
|
||||
if (!isOwnGroup.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (val === userRating.value) {
|
||||
val = 0;
|
||||
}
|
||||
|
||||
if (!props.emitOnly) {
|
||||
setRating(props.slug, val || 0, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user