refactor(editor): Fix typescript issues in components (no-changelog) (#9580)

This commit is contained in:
Elias Meire
2024-05-31 16:27:56 +02:00
committed by GitHub
parent e23420d89d
commit 3227f6c13e
20 changed files with 57 additions and 58 deletions

View File

@@ -22,7 +22,12 @@ const i18n = useI18n();
const rootStore = useRootStore();
const workflowsStore = useWorkflowsStore();
const tabs = ref([
type ChatEmbedModalTabValue = 'cdn' | 'vue' | 'react' | 'other';
type ChatEmbedModalTab = {
label: string;
value: ChatEmbedModalTabValue;
};
const tabs = ref<ChatEmbedModalTab[]>([
{
label: 'CDN Embed',
value: 'cdn',
@@ -40,7 +45,7 @@ const tabs = ref([
value: 'other',
},
]);
const currentTab = ref('cdn');
const currentTab = ref<ChatEmbedModalTabValue>('cdn');
const webhookNode = computed(() => {
for (const type of [CHAT_TRIGGER_NODE_TYPE, WEBHOOK_NODE_TYPE]) {