fix(editor): Don't mark node as dirty when NDV is opened (#15222)

This commit is contained in:
Suguru Inoue
2025-05-20 15:23:38 +02:00
committed by GitHub
parent fbf7083062
commit 8d1170e3dd
4 changed files with 53 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ import type {
ResourceMapperFields,
ResourceMapperValue,
} from 'n8n-workflow';
import { NodeHelpers } from 'n8n-workflow';
import { deepCopy, NodeHelpers } from 'n8n-workflow';
import { computed, onMounted, reactive, watch } from 'vue';
import MappingModeSelect from './MappingModeSelect.vue';
import MatchingColumnsSelect from './MatchingColumnsSelect.vue';
@@ -537,7 +537,9 @@ function emitValueChanged(): void {
pruneParamValues();
emit('valueChanged', {
name: `${props.path}`,
value: state.paramValue,
// deepCopy ensures that mutations to state.paramValue that occur in
// this component are never visible to the store without explicit event emits
value: deepCopy(state.paramValue),
node: props.node?.name,
});
updateNodeIssues();