-
Notifications
You must be signed in to change notification settings - Fork 25
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
QoL Improvements #654
QoL Improvements #654
Conversation
… Importing Multiples.
src/pages/collection/Series.tsx
Outdated
<> | ||
<Link | ||
className="font-semibold text-panel-text-primary" | ||
to={`/webui/collection/group/${series.IDs?.ParentGroup}`} |
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 think ?.ParentGroup
check needs to be moved into group.Size > 1
condition otherwise you will be rendering a broken link which doesn't make a lot of sense.
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.
group
will be empty if ParentGroup
doesn't exist because the query will be skipped. So it doesn't matter.
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 mean if you anticipate that ${series.IDs?.ParentGroup}
might be null then just move it to the line 109 and don't try to render a link at all if you are unable to make a valid route anyways.
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.
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.
There, I fixed it 👍
IDs
will always exist so there was no point in putting the ?
anyway
No description provided.