Skip to content

Commit ea4079c

Browse files
underootmourner
authored andcommitted
Fix false positive check for image params (internal-2083)
* Fix false positive check for image params * Fixed check
1 parent 749e8bb commit ea4079c

File tree

1 file changed

+1
-1
lines changed
  • src/style-spec/expression/definitions

1 file changed

+1
-1
lines changed

src/style-spec/expression/definitions/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type ImageOptions = {
1414
}
1515

1616
function isImageOptions(value: unknown) {
17-
if (value !== null && typeof value === 'object') {
17+
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
1818
return true;
1919
}
2020

0 commit comments

Comments
 (0)