Skip to content

Commit

Permalink
[diff] Unwrap fromValue/toValue from wrappers in typeChange diff
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 7818aff commit 646350f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/diff/src/calculate/diffTypeChange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export function diffTypeChange<A>(
isChanged: true,

fromType: fromInput.type,
fromValue: fromInput,
fromValue: fromInput.value,
fromDiff: removedInput(fromInput, undefined, options),

toType: toInput.type,
toValue: toInput,
toValue: toInput.value,
toDiff: addedInput(toInput, undefined, options),

annotation: toInput.annotation
Expand Down

0 comments on commit 646350f

Please sign in to comment.