Skip to content

Commit 7c0d46a

Browse files
authored
chore(aggregations): show confirmation on new pipeline click after an aggregation is generated COMPASS-7234 (#4872)
1 parent 25bae67 commit 7c0d46a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/compass-aggregations/src/modules/is-modified.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ActionTypes as ConfirmNewPipelineActions } from './is-new-pipeline-conf
33
import { StageEditorActionTypes } from './pipeline-builder/stage-editor';
44
import { EditorActionTypes } from './pipeline-builder/text-editor-pipeline';
55
import { SAVED_PIPELINE_ADD } from './saved-pipeline';
6+
import { AIPipelineActionTypes } from './pipeline-builder/pipeline-ai';
67

78
/**
89
* Reducer function for handle state changes to isModified.
@@ -22,6 +23,8 @@ export default function reducer(state = false, action) {
2223
StageEditorActionTypes.StageRemoved,
2324
StageEditorActionTypes.StageValueChange,
2425
EditorActionTypes.EditorValueChange,
26+
AIPipelineActionTypes.PipelineGeneratedFromQuery,
27+
AIPipelineActionTypes.LoadGeneratedPipeline,
2528
].includes(action.type)
2629
) {
2730
return true;

0 commit comments

Comments
 (0)