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

feat: Keep overrides after changing a representation #3104

Merged

Conversation

LautaroPetaccio
Copy link
Contributor

This PR changes the logic to keep the overrides after modifying the item representations.

Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 2:57pm

@coveralls
Copy link

coveralls commented May 14, 2024

Pull Request Test Coverage Report for Build 9081547788

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 46.992%

Totals Coverage Status
Change from base Build 9021866490: 0.0%
Covered Lines: 5399
Relevant Lines: 10483

💛 - Coveralls

@@ -356,8 +356,8 @@ export default class CreateSingleItemModal extends React.PureComponent<Props, St
const removesDefaultHiding = category === WearableCategory.UPPER_BODY ? [BodyPartCategory.HANDS] : []
data = {
...pristineItem.data,
replaces: [],
hides: [],
replaces: pristineItem.data.replaces ?? [],
Copy link
Contributor

Choose a reason for hiding this comment

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

removing these lines could work too? in the previous line, it's already getting the ...pristineItem.data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They actually, do! I'll remove them

@LautaroPetaccio LautaroPetaccio merged commit 6baa35e into master May 14, 2024
7 checks passed
@LautaroPetaccio LautaroPetaccio deleted the feat/keep-overrides-after-changing-representation branch May 14, 2024 15:02
@LautaroPetaccio
Copy link
Contributor Author

Closes #3104 3103

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