UI: In action dashboard state params added new instance params

This commit is contained in:
Vladyslav_Prykhodko 2025-01-31 10:11:47 +02:00
parent c6bb337d23
commit 50f36c7a5c

View File

@ -53,7 +53,7 @@ import {
import { ValueType } from '@shared/models/constants'; import { ValueType } from '@shared/models/constants';
import { EntityType, entityTypeTranslations } from '@shared/models/entity-type.models'; import { EntityType, entityTypeTranslations } from '@shared/models/entity-type.models';
import { EntityId } from '@shared/models/id/entity-id'; import { EntityId } from '@shared/models/id/entity-id';
import { isDefinedAndNotNull } from '@core/utils'; import { deepClone, isDefinedAndNotNull } from '@core/utils';
import { parseError } from '@shared/models/error.models'; import { parseError } from '@shared/models/error.models';
import { CompiledTbFunction, compileTbFunction } from '@shared/models/js-function.models'; import { CompiledTbFunction, compileTbFunction } from '@shared/models/js-function.models';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
@ -658,7 +658,7 @@ export class DashboardStateWithParamsGetter<V> extends ValueGetter<V> {
return of({id: 'default', params: {}}); return of({id: 'default', params: {}});
} else { } else {
return this.ctx.stateController.dashboardCtrl.dashboardCtx.stateId.pipe( return this.ctx.stateController.dashboardCtrl.dashboardCtx.stateId.pipe(
map(id => ({id, params: this.ctx.stateController.getStateParams()})) map(id => ({id, params: deepClone(this.ctx.stateController.getStateParams())}))
); );
} }
} }