From 969a848e7335ea16f89757a50c3df5f6209432f2 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Wed, 11 Nov 2026 15:15:19 +0100 Subject: [PATCH] Fix [object Object] in Execute RPC action summary for JSON parameters (#16622) --- .../common/action/set-value-action-settings.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts index bb2c6024db..6578d6a5b4 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts @@ -18,7 +18,7 @@ import { SetValueAction, SetValueSettings, ValueToDataType } from '@shared/model import { TranslateService } from '@ngx-translate/core'; import { IAliasController } from '@core/api/widget-api.models'; import { TargetDevice, widgetType } from '@shared/models/widget.models'; -import { isDefinedAndNotNull } from '@core/utils'; +import { isDefinedAndNotNull, isObject } from '@core/utils'; import { SetValueActionSettingsPanelComponent } from '@home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component'; @@ -136,6 +136,9 @@ export class SetValueActionSettingsComponent implements OnInit, ControlValueAcce break; case ValueToDataType.CONSTANT: value = this.modelValue.valueToData.constantValue; + if (isObject(value)) { + value = JSON.stringify(value); + } break; case ValueToDataType.FUNCTION: value = 'f(value)';