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(
(json as $IntentionalAny)[key] as unknown,
)
if (
typeof deserializedSub !== 'undefined' &&
deserializedSub !== null
) {
if (deserializedSub != null) {
atLeastOnePropWasDeserialized = true
deserialized[key] = deserializedSub
}