mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user