diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index a3e3d3d36..bbc950102 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -163,13 +163,13 @@ const initialApiFormData = ref({}) const isUserInput = computed( () => props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0] - .properties.user_input_field_list.length > 0 + ?.properties.user_input_field_list.length > 0 ) const isAPIInput = computed( () => props.type === 'debug-ai-chat' && props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0] - .properties.api_input_field_list.length > 0 + ?.properties.api_input_field_list.length > 0 ) const showUserInputContent = computed(() => { return ( diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index f9a309839..d623968a9 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -3,7 +3,7 @@