mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Refresh NDV node connections if inputs change dynamically (#16023)
This commit is contained in:
@@ -15,6 +15,7 @@ import type {
|
|||||||
import { useDebounce } from '@/composables/useDebounce';
|
import { useDebounce } from '@/composables/useDebounce';
|
||||||
import { OnClickOutside } from '@vueuse/components';
|
import { OnClickOutside } from '@vueuse/components';
|
||||||
import { useI18n } from '@n8n/i18n';
|
import { useI18n } from '@n8n/i18n';
|
||||||
|
import { useNDVStore } from '@/stores/ndv.store';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
rootNode: INodeUi;
|
rootNode: INodeUi;
|
||||||
@@ -47,7 +48,7 @@ const nodeType = computed(() =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
const nodeData = computed(() => workflowsStore.getNodeByName(props.rootNode.name));
|
const nodeData = computed(() => workflowsStore.getNodeByName(props.rootNode.name));
|
||||||
|
const ndvStore = useNDVStore();
|
||||||
const workflow = computed(() => workflowsStore.getCurrentWorkflow());
|
const workflow = computed(() => workflowsStore.getCurrentWorkflow());
|
||||||
|
|
||||||
const nodeInputIssues = computed(() => {
|
const nodeInputIssues = computed(() => {
|
||||||
@@ -175,7 +176,7 @@ function showNodeInputsIssues() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
nodeData,
|
[nodeData, ndvStore.activeNode],
|
||||||
debounce(
|
debounce(
|
||||||
() =>
|
() =>
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user