Skip to content

Commit

Permalink
feat: Keep overrides after changing a representation
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed May 14, 2024
1 parent 0d80340 commit 2d0317c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? [],
hides: pristineItem.data.hides ?? [],
removesDefaultHiding,
category: category as WearableCategory,
requiredPermissions: requiredPermissions || []
Expand Down

0 comments on commit 2d0317c

Please sign in to comment.