Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): restore saved states of quota override checkboxes #1282

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

TheCatLady
Copy link
Collaborator

Description

Currently, the "Enable Override" checkboxes reset to unchecked when you return to the user settings page after saving. (This is just a visual bug, the values are saved properly to the DB.)

Screenshot (if UI-related)

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

N/A

@TheCatLady TheCatLady requested a review from sct as a code owner March 24, 2021 17:07
Comment on lines 61 to 62
setMovieQuotaEnabled(!!data?.movieQuotaLimit && !!data?.movieQuotaDays);
setTvQuotaEnabled(!!data?.tvQuotaLimit && !!data?.tvQuotaDays);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must check if the limits are null/undefined here or unlimited won't check the box.

@sct sct enabled auto-merge (squash) March 25, 2021 05:49
@sct sct merged commit 2059fc1 into develop Mar 25, 2021
@sct sct deleted the fix/ui/request-limit-override-checkboxes branch March 25, 2021 05:54
@github-actions
Copy link

github-actions bot commented Apr 1, 2021

🎉 This PR is included in version 1.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants