-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat: Keep overrides after changing a representation #3104
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Pull Request Test Coverage Report for Build 9081547788Details
💛 - 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 ?? [], |
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.
removing these lines could work too? in the previous line, it's already getting the ...pristineItem.data
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.
They actually, do! I'll remove them
This PR changes the logic to keep the overrides after modifying the item representations.