Skip to content

Commit

Permalink
Fix false positive check for image params (internal-2083)
Browse files Browse the repository at this point in the history
* Fix false positive check for image params

* Fixed check
  • Loading branch information
underoot authored and mourner committed Dec 23, 2024
1 parent 749e8bb commit ea4079c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style-spec/expression/definitions/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type ImageOptions = {
}

function isImageOptions(value: unknown) {
if (value !== null && typeof value === 'object') {
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
return true;
}

Expand Down

0 comments on commit ea4079c

Please sign in to comment.