From 39210905c2baf5f4f5cae9ad1192375b55c6fc23 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 15 Jan 2025 13:34:29 +0200 Subject: [PATCH] UI: Fix issue where polygon/circle fill and stroke color functions didn't work in map widgets --- .../home/components/widget/lib/maps/common-maps-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts index cd974ee22c..2d466803eb 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts @@ -260,7 +260,7 @@ export const parseWithTranslation = { export function functionValueCalculator(useFunction: boolean, func: CompiledTbFunction, params = [], defaultValue: T): T { let res: T; - if (useFunction && isDefined(func) && isFunction(func)) { + if (useFunction && isDefinedAndNotNull(func)) { try { res = func.execute(...params); if (!isDefinedAndNotNull(res) || res === '') {