Skip to content

Commit f048839

Browse files
committed
Check on array members of type string
1 parent d3d6e8f commit f048839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/lib/template/dot-access.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const getValueByDot = (
3030
typeof current !== "string" &&
3131
typeof current !== "number" &&
3232
typeof current !== "boolean" &&
33-
!Array.isArray(current)
33+
!(Array.isArray(current) && current.every(item => typeof item === "string"))
3434
) {
3535
return defaultValue;
3636
}

0 commit comments

Comments
 (0)