Small refactor
https://github.com/theatre-js/theatre/pull/118#discussion_r846630232
This commit is contained in:
parent
dd7c789ad8
commit
df188da2aa
1 changed files with 1 additions and 4 deletions
|
@ -124,10 +124,7 @@ export const compound = <Props extends IShorthandCompoundProps>(
|
|||
const deserializedSub = propConfig.deserialize(
|
||||
(json as $IntentionalAny)[key] as unknown,
|
||||
)
|
||||
if (
|
||||
typeof deserializedSub !== 'undefined' &&
|
||||
deserializedSub !== null
|
||||
) {
|
||||
if (deserializedSub != null) {
|
||||
atLeastOnePropWasDeserialized = true
|
||||
deserialized[key] = deserializedSub
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue