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

Interpret null values in metadata as empty strings #427

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

Dananji
Copy link
Collaborator

@Dananji Dananji commented Feb 21, 2024

With this change metadata with null values would show up in the MetadataDisplay component as below;

Screenshot 2024-02-21 at 4 03 53 PM
Screenshot 2024-02-21 at 4 03 21 PM

This is identical to the behavior in both Clover and UV.

@joncameron Does this look okay? Or do you think removing the metadata field in the display works better?

Related issue: #379

@joncameron
Copy link
Contributor

@Dananji This looks OK to me, especially since it matches other players' behavior. It looks a little odd to have a field with no value but if it's in the manifest it makes sense to render out even with a value of nil/null/empty string.

Copy link
Contributor

@masaball masaball left a comment

Choose a reason for hiding this comment

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

👍

@Dananji Dananji merged commit ae27b3c into main Feb 22, 2024
2 checks passed
@Dananji Dananji deleted the null-metadata branch February 22, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants