mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
fix: reduce redundancy, fix bug in items count
This commit is contained in:
parent
f746da04ac
commit
938db40f96
|
@ -318,7 +318,9 @@ const workflowRunData = computed(() => {
|
|||
}
|
||||
return null;
|
||||
});
|
||||
const dataCount = computed(() => getDataCount(props.runIndex, currentOutputIndex.value));
|
||||
const dataCount = computed(() =>
|
||||
getDataCount(props.runIndex, currentOutputIndex.value, connectionType.value),
|
||||
);
|
||||
|
||||
const unfilteredDataCount = computed(() =>
|
||||
pinnedData.data.value ? pinnedData.data.value.length : rawInputData.value.length,
|
||||
|
@ -1683,7 +1685,6 @@ defineExpose({ enterEditMode });
|
|||
:total-runs="maxRunIndex"
|
||||
:has-default-hover-state="paneType === 'input' && !search"
|
||||
:search="search"
|
||||
:sub-execution-override="activeTaskMetadata?.subExecution"
|
||||
@mounted="emit('tableMounted', $event)"
|
||||
@active-row-changed="onItemHover"
|
||||
@display-mode-change="onDisplayModeChange"
|
||||
|
|
|
@ -6,7 +6,7 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
|
|||
import { getMappedExpression } from '@/utils/mappingUtils';
|
||||
import { getPairedItemId } from '@/utils/pairedItemUtils';
|
||||
import { shorten } from '@/utils/typesUtils';
|
||||
import type { GenericValue, IDataObject, INodeExecutionData, RelatedExecution } from 'n8n-workflow';
|
||||
import type { GenericValue, IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import Draggable from './Draggable.vue';
|
||||
import MappingPill from './MappingPill.vue';
|
||||
|
@ -32,7 +32,6 @@ type Props = {
|
|||
mappingEnabled?: boolean;
|
||||
hasDefaultHoverState?: boolean;
|
||||
search?: string;
|
||||
subExecutionOverride?: RelatedExecution;
|
||||
};
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
|
@ -342,10 +341,7 @@ function convertToTable(inputData: INodeExecutionData[]): ITableData {
|
|||
leftEntryColumns = entryColumns;
|
||||
}
|
||||
|
||||
if (props.subExecutionOverride) {
|
||||
metadata.data.push({ subExecution: props.subExecutionOverride });
|
||||
metadata.hasExecutionIds = true;
|
||||
} else if (data.metadata?.subExecution) {
|
||||
if (data.metadata?.subExecution) {
|
||||
metadata.data.push(data.metadata);
|
||||
metadata.hasExecutionIds = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue