-
Notifications
You must be signed in to change notification settings - Fork 278
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 show-selector not honoring option to split shows & anime #4625
Conversation
const lists = [ | ||
{ type: 'Shows', shows: [] }, | ||
{ type: 'Anime', shows: [] } | ||
]; | ||
|
||
shows.forEach(show => { | ||
const type = show.config.anime === true ? 1 : 0; | ||
const type = animeSplitHome && show.config.anime ? 1 : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to Number(animeSplitHome && show.config.anime)
as it'll return 1/0 depending on the boolean passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually did that on my first draft of this code, but I feared it wasn't clear enough.
Edit: Updated code.
Unused since converting show-selector to Vue.
13c3595
to
7b07551
Compare
Python code LGTM, JS should be fine too? @OmgImAlexis ? |
show-selector
not honoringapp.ANIME_SPLIT_HOME
.show-selector
to Vue.