Skip to content

Commit d4209f0

Browse files
authored
fix: unexpected expection when style array contains undefined (#115)
1 parent 90a99b0 commit d4209f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtime/native/react/rules.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export function updateRules(
7171
if (target) {
7272
if (Array.isArray(target)) {
7373
for (const item of target) {
74+
// undefined or falsy is allowed in the style array
75+
if (!item) {
76+
continue;
77+
}
78+
7479
if (VAR_SYMBOL in item) {
7580
inlineVariables.add(item);
7681
} else if (

0 commit comments

Comments
 (0)