Merge pull request #12456 from vvlladd28/bug/polygon-circe-color-function/not-work

Fix issue where polygon/circle fill and stroke color functions didn't work in map widgets
This commit is contained in:
Igor Kulikov 2025-01-17 19:01:00 +02:00 committed by GitHub
commit c09a2ee16d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ export const parseWithTranslation = {
export function functionValueCalculator<T>(useFunction: boolean, func: CompiledTbFunction<GenericFunction>, 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 === '') {