mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Fix issue showing too much data error (#2200)
* fix bug showing too much data error * init when node changes * revert node settings chagnes * revert node settings chagnes
This commit is contained in:
@@ -269,6 +269,9 @@ export default mixins(
|
|||||||
MAX_DISPLAY_ITEMS_AUTO_ALL,
|
MAX_DISPLAY_ITEMS_AUTO_ALL,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasNodeRun(): boolean {
|
hasNodeRun(): boolean {
|
||||||
return Boolean(this.node && this.workflowRunData && this.workflowRunData.hasOwnProperty(this.node.name));
|
return Boolean(this.node && this.workflowRunData && this.workflowRunData.hasOwnProperty(this.node.name));
|
||||||
@@ -422,6 +425,18 @@ export default mixins(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
init() {
|
||||||
|
// Reset the selected output index every time another node gets selected
|
||||||
|
this.outputIndex = 0;
|
||||||
|
this.maxDisplayItems = 25;
|
||||||
|
this.refreshDataSize();
|
||||||
|
if (this.displayMode === 'Binary') {
|
||||||
|
this.closeBinaryDataDisplay();
|
||||||
|
if (this.binaryData.length === 0) {
|
||||||
|
this.displayMode = 'Table';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
closeBinaryDataDisplay () {
|
closeBinaryDataDisplay () {
|
||||||
this.binaryDataDisplayVisible = false;
|
this.binaryDataDisplayVisible = false;
|
||||||
this.binaryDataDisplayData = null;
|
this.binaryDataDisplayData = null;
|
||||||
@@ -606,17 +621,8 @@ export default mixins(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
node (newNode, oldNode) {
|
node() {
|
||||||
// Reset the selected output index every time another node gets selected
|
this.init();
|
||||||
this.outputIndex = 0;
|
|
||||||
this.maxDisplayItems = 25;
|
|
||||||
this.refreshDataSize();
|
|
||||||
if (this.displayMode === 'Binary') {
|
|
||||||
this.closeBinaryDataDisplay();
|
|
||||||
if (this.binaryData.length === 0) {
|
|
||||||
this.displayMode = 'Table';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
jsonData () {
|
jsonData () {
|
||||||
this.refreshDataSize();
|
this.refreshDataSize();
|
||||||
@@ -629,8 +635,6 @@ export default mixins(
|
|||||||
this.runIndex = Math.min(this.runIndex, this.maxRunIndex);
|
this.runIndex = Math.min(this.runIndex, this.maxRunIndex);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user