fix(lib): add undefined check on vcn VariantProps processing
This commit is contained in:
parent
8465837f63
commit
db5c36a3bf
@ -270,6 +270,7 @@ export function vcn<
|
|||||||
for (const [variantName, variantKey] of Object.entries(
|
for (const [variantName, variantKey] of Object.entries(
|
||||||
otherVariantProps,
|
otherVariantProps,
|
||||||
) as VariantKVEntry<V>) {
|
) as VariantKVEntry<V>) {
|
||||||
|
if (typeof variantKey === "undefined") continue;
|
||||||
kv[variantName] = variantKey;
|
kv[variantName] = variantKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user