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(
|
const deserializedSub = propConfig.deserialize(
|
||||||
(json as $IntentionalAny)[key] as unknown,
|
(json as $IntentionalAny)[key] as unknown,
|
||||||
)
|
)
|
||||||
if (
|
if (deserializedSub != null) {
|
||||||
typeof deserializedSub !== 'undefined' &&
|
|
||||||
deserializedSub !== null
|
|
||||||
) {
|
|
||||||
atLeastOnePropWasDeserialized = true
|
atLeastOnePropWasDeserialized = true
|
||||||
deserialized[key] = deserializedSub
|
deserialized[key] = deserializedSub
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue