mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Remove duplicate mapping of item.json key in data pinning (#6135)
* fix(editor): Remove duplicate mapping of `item.json` key in data pinning * fix(editor): Remove duplicate mapping of `item.json` key in data pinning * fix(editor): Remove duplicate mapping of `item.json` key in data pinning * test(editor): Unit test the fix of duplicate mapping of `item.json` key in data pinning
This commit is contained in:
@@ -1062,16 +1062,14 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).exten
|
||||
return;
|
||||
}
|
||||
|
||||
const data = executionDataToJson(this.rawInputData) as INodeExecutionData[];
|
||||
|
||||
if (!this.isValidPinDataSize(data)) {
|
||||
if (!this.isValidPinDataSize(this.inputData)) {
|
||||
this.onDataPinningError({ errorType: 'data-too-large', source: 'pin-icon-click' });
|
||||
return;
|
||||
}
|
||||
|
||||
this.onDataPinningSuccess({ source: 'pin-icon-click' });
|
||||
|
||||
this.workflowsStore.pinData({ node: this.node, data });
|
||||
this.workflowsStore.pinData({ node: this.node, data: this.inputData });
|
||||
|
||||
if (this.maxRunIndex > 0) {
|
||||
this.$showToast({
|
||||
|
||||
Reference in New Issue
Block a user