UI: Fix issue where polygon/circle fill and stroke color functions didn't work in map widgets

This commit is contained in:
Vladyslav_Prykhodko 2025-01-15 13:34:29 +02:00
parent e9036f8aa8
commit 39210905c2

View File

@ -260,7 +260,7 @@ export const parseWithTranslation = {
export function functionValueCalculator<T>(useFunction: boolean, func: CompiledTbFunction<GenericFunction>, params = [], defaultValue: T): T { export function functionValueCalculator<T>(useFunction: boolean, func: CompiledTbFunction<GenericFunction>, params = [], defaultValue: T): T {
let res: T; let res: T;
if (useFunction && isDefined(func) && isFunction(func)) { if (useFunction && isDefinedAndNotNull(func)) {
try { try {
res = func.execute(...params); res = func.execute(...params);
if (!isDefinedAndNotNull(res) || res === '') { if (!isDefinedAndNotNull(res) || res === '') {