mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08: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:
parent
ab45898a69
commit
55c7dbad72
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue