fix(editor): Fix broken types for globally defined components (no-changelog) (#16505)

Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
Alex Grozav
2025-06-24 14:01:23 +03:00
committed by GitHub
parent 21ff173070
commit 20c63436d2
150 changed files with 1332 additions and 960 deletions

View File

@@ -11,7 +11,7 @@ import {
NodeConnectionTypes,
traverseNodeParameters,
} from 'n8n-workflow';
import type { IFormInput } from '@n8n/design-system';
import type { FormFieldValueUpdate, IFormInput } from '@n8n/design-system';
import { computed, ref, watch } from 'vue';
import { useRouter } from 'vue-router';
import { useTelemetry } from '@/composables/useTelemetry';
@@ -249,9 +249,11 @@ const onExecute = async () => {
};
// Add handler for tool selection change
const onUpdate = (change: { name: string; value: string }) => {
const onUpdate = (change: FormFieldValueUpdate) => {
if (change.name !== 'toolName') return;
selectedTool.value = change.value;
if (typeof change.value === 'string') {
selectedTool.value = change.value;
}
};
</script>