mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 20:09:20 +08:00
perf: improve Jest caching and configuration in web tests (#29881)
This commit is contained in:
@@ -41,7 +41,7 @@ const AnnotationCtrlButton: FC<Props> = ({
|
||||
setShowAnnotationFullModal()
|
||||
return
|
||||
}
|
||||
const res: any = await addAnnotation(appId, {
|
||||
const res = await addAnnotation(appId, {
|
||||
message_id: messageId,
|
||||
question: query,
|
||||
answer,
|
||||
@@ -50,7 +50,7 @@ const AnnotationCtrlButton: FC<Props> = ({
|
||||
message: t('common.api.actionSuccess') as string,
|
||||
type: 'success',
|
||||
})
|
||||
onAdded(res.id, res.account?.name)
|
||||
onAdded(res.id, res.account?.name ?? '')
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user