From ea4079ca8c1e7a54edfd8033d30c73b4796ec176 Mon Sep 17 00:00:00 2001 From: Aleksandr Shoronov Date: Mon, 23 Dec 2024 13:13:10 +0200 Subject: [PATCH] Fix false positive check for image params (internal-2083) * Fix false positive check for image params * Fixed check --- src/style-spec/expression/definitions/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style-spec/expression/definitions/image.ts b/src/style-spec/expression/definitions/image.ts index fe51cac0f34..f2eb860d0c7 100644 --- a/src/style-spec/expression/definitions/image.ts +++ b/src/style-spec/expression/definitions/image.ts @@ -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; }