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

Commit

Permalink
Merge pull request #554 from gluestack/fix/inline-utility-prop
Browse files Browse the repository at this point in the history
fix: inline prop utility prop
  • Loading branch information
ankit-tailor authored Dec 4, 2023
2 parents a17c4fb + b52cb23 commit 42de65b
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.includes(reservedKey)) {
} else if (
Array.isArray(descendants) &&
descendants.includes(reservedKey)
) {
return {
propPath: [reservedKey],
value: propValue,
Expand Down

0 comments on commit 42de65b

Please sign in to comment.