Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix: is array condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj-10 committed Dec 4, 2023
1 parent 8a338c4 commit b52cb23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react/src/core/convert-utility-to-sx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export const checkAndReturnUtilityProp = (
propPath: [reservedKeys[reservedKey].key],
value: propValue,
};
} else if (descendants && descendants.includes(reservedKey)) {
} else if (
Array.isArray(descendants) &&
descendants.includes(reservedKey)
) {
return {
propPath: [reservedKey],
value: propValue,
Expand Down

0 comments on commit b52cb23

Please sign in to comment.