mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(editor): Fix excess json key from pindata in expressions (#3925)
* 🐛 Return pindata without excess `json` key * ⏪ Restore `json` keys in `RunData` pane
This commit is contained in:
@@ -632,7 +632,13 @@ export default mixins(
|
||||
let inputData = this.rawInputData;
|
||||
|
||||
if (this.node && this.pinData) {
|
||||
inputData = this.pinData;
|
||||
inputData = Array.isArray(this.pinData)
|
||||
? this.pinData.map((value) => ({
|
||||
json: value,
|
||||
}))
|
||||
: [{
|
||||
json: this.pinData,
|
||||
}];
|
||||
}
|
||||
|
||||
const offset = this.pageSize * (this.currentPage - 1);
|
||||
|
||||
@@ -895,7 +895,9 @@ export const store = new Vuex.Store({
|
||||
return state.workflow.pinData;
|
||||
},
|
||||
pinDataByNodeName: (state) => (nodeName: string) => {
|
||||
return state.workflow.pinData ? state.workflow.pinData[nodeName] : undefined;
|
||||
if (!state.workflow.pinData || !state.workflow.pinData[nodeName]) return undefined;
|
||||
|
||||
return state.workflow.pinData[nodeName].map(item => item.json);
|
||||
},
|
||||
pinDataSize: (state) => {
|
||||
return state.workflow.nodes
|
||||
|
||||
Reference in New Issue
Block a user