Skip to content

Commit 02ed7b6

Browse files
authored
fix(editor): Refresh NDV node connections if inputs change dynamically (#16023)
1 parent bc44baa commit 02ed7b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/frontend/editor-ui/src/components/NDVSubConnections.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type {
1515
import { useDebounce } from '@/composables/useDebounce';
1616
import { OnClickOutside } from '@vueuse/components';
1717
import { useI18n } from '@n8n/i18n';
18+
import { useNDVStore } from '@/stores/ndv.store';
1819
1920
interface Props {
2021
rootNode: INodeUi;
@@ -47,7 +48,7 @@ const nodeType = computed(() =>
4748
);
4849
4950
const nodeData = computed(() => workflowsStore.getNodeByName(props.rootNode.name));
50-
51+
const ndvStore = useNDVStore();
5152
const workflow = computed(() => workflowsStore.getCurrentWorkflow());
5253
5354
const nodeInputIssues = computed(() => {
@@ -175,7 +176,7 @@ function showNodeInputsIssues() {
175176
}
176177
177178
watch(
178-
nodeData,
179+
[nodeData, ndvStore.activeNode],
179180
debounce(
180181
() =>
181182
setTimeout(() => {

0 commit comments

Comments
 (0)