diff --git a/packages/client/hmi-client/src/components/workflow/ops/intervention-policy/tera-intervention-policy-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/intervention-policy/tera-intervention-policy-drilldown.vue
index c993f6600a..4361001a64 100644
--- a/packages/client/hmi-client/src/components/workflow/ops/intervention-policy/tera-intervention-policy-drilldown.vue
+++ b/packages/client/hmi-client/src/components/workflow/ops/intervention-policy/tera-intervention-policy-drilldown.vue
@@ -240,10 +240,8 @@ const initialize = async () => {
if (state.interventionPolicy?.id) {
// copy the state into the knobs if it exists
selectedPolicy.value = await getInterventionPolicyById(state.interventionPolicy.id);
- knobs.value.transientInterventionPolicy = cloneDeep(state.interventionPolicy);
- } else {
- knobs.value.transientInterventionPolicy = cloneDeep(state.interventionPolicy);
}
+ knobs.value.transientInterventionPolicy = cloneDeep(state.interventionPolicy);
};
const applyInterventionPolicy = (interventionPolicy: InterventionPolicy) => {
diff --git a/packages/client/hmi-client/src/components/workflow/ops/model-config/model-config-operation.ts b/packages/client/hmi-client/src/components/workflow/ops/model-config/model-config-operation.ts
index 3cd33d48fb..c8d2494e3b 100644
--- a/packages/client/hmi-client/src/components/workflow/ops/model-config/model-config-operation.ts
+++ b/packages/client/hmi-client/src/components/workflow/ops/model-config/model-config-operation.ts
@@ -1,19 +1,15 @@
import { WorkflowOperationTypes } from '@/types/workflow';
import type { Operation, BaseState } from '@/types/workflow';
import type { ModelConfiguration } from '@/types/Types';
+import { NotebookHistory } from '@/services/notebook';
import configureModel from '@assets/svg/operator-images/configure-model.svg';
export const name = 'ModelConfigOperation';
-export interface ModelEditCode {
- code: string;
- timestamp: number;
-}
-
export interface ModelConfigOperationState extends BaseState {
transientModelConfig: ModelConfiguration;
- modelEditCodeHistory: ModelEditCode[];
- hasCodeBeenRun: boolean;
+ notebookHistory: NotebookHistory[];
+ hasCodeRun: boolean;
}
export const blankModelConfig: ModelConfiguration = {
@@ -43,9 +39,9 @@ export const ModelConfigOperation: Operation = {
action: async () => ({}),
initState: () => {
const init: ModelConfigOperationState = {
- modelEditCodeHistory: [],
- hasCodeBeenRun: false,
- transientModelConfig: blankModelConfig
+ transientModelConfig: blankModelConfig,
+ notebookHistory: [],
+ hasCodeRun: false
};
return init;
}
diff --git a/packages/client/hmi-client/src/components/workflow/ops/model-config/tera-model-config-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/model-config/tera-model-config-drilldown.vue
index 837ce624f0..c8c9ec8892 100644
--- a/packages/client/hmi-client/src/components/workflow/ops/model-config/tera-model-config-drilldown.vue
+++ b/packages/client/hmi-client/src/components/workflow/ops/model-config/tera-model-config-drilldown.vue
@@ -73,7 +73,7 @@
-
@@ -135,8 +135,7 @@
-
-
+