Skip to content

Commit 919a3ee

Browse files
fix: Fix type errors
1 parent 1a704f1 commit 919a3ee

File tree

2 files changed

+4
-4
lines changed
  • ui/src
    • components/ai-chat/component/chat-input-operate
    • workflow/nodes/condition-node

2 files changed

+4
-4
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ const switchMicrophone = (status: boolean) => {
467467
}
468468
}
469469
470-
const TouchEnd = (bool: Boolean) => {
470+
const TouchEnd = (bool?: Boolean) => {
471471
if (bool) {
472472
stopRecording()
473473
recorderStatus.value = 'STOP'

ui/src/workflow/nodes/condition-node/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ import type { FormInstance } from 'element-plus'
161161
import { ref, computed, onMounted, nextTick } from 'vue'
162162
import { randomId } from '@/utils/utils'
163163
import { compareList } from '@/workflow/common/data'
164-
import { type DraggableEvent, type UseDraggableReturn, VueDraggable } from 'vue-draggable-plus'
164+
import { VueDraggable } from 'vue-draggable-plus'
165165
166166
const props = defineProps<{ nodeModel: any }>()
167167
const form = {
@@ -238,8 +238,8 @@ const validate = () => {
238238
})
239239
}
240240
241-
function onEnd(evt: DraggableEvent) {
242-
const { oldIndex, newIndex, clonedData } = evt
241+
function onEnd(event?: any) {
242+
const { oldIndex, newIndex, clonedData } = event
243243
if (oldIndex === undefined || newIndex === undefined) return
244244
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
245245

0 commit comments

Comments
 (0)