Aria Minaei 2022-04-10 19:17:28 +02:00
parent dd7c789ad8
commit df188da2aa

View file

@ -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
} }