mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 01:28:58 +03: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:
parent
ef14b41a16
commit
4db451d9d9
@ -269,6 +269,9 @@ export default mixins(
|
||||
MAX_DISPLAY_ITEMS_AUTO_ALL,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
computed: {
|
||||
hasNodeRun(): boolean {
|
||||
return Boolean(this.node && this.workflowRunData && this.workflowRunData.hasOwnProperty(this.node.name));
|
||||
@ -422,6 +425,18 @@ export default mixins(
|
||||
},
|
||||
},
|
||||
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 () {
|
||||
this.binaryDataDisplayVisible = false;
|
||||
this.binaryDataDisplayData = null;
|
||||
@ -606,17 +621,8 @@ export default mixins(
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
node (newNode, oldNode) {
|
||||
// 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';
|
||||
}
|
||||
}
|
||||
node() {
|
||||
this.init();
|
||||
},
|
||||
jsonData () {
|
||||
this.refreshDataSize();
|
||||
@ -629,8 +635,6 @@ export default mixins(
|
||||
this.runIndex = Math.min(this.runIndex, this.maxRunIndex);
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user