Browse Source
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
pull/12485/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts
|
|
@ -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 === '') { |
|
|
|