浏览代码

fix: pass operation name to onUpdate callback in StatusItem component (#26019)

tags/1.9.0
Wu Tianwei 1 个月前
父节点
当前提交
8c38363038
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/datasets/documents/status-item/index.tsx

+ 1
- 1
web/app/components/datasets/documents/status-item/index.tsx 查看文件

@@ -72,7 +72,7 @@ const StatusItem = ({
const [e] = await asyncRunSafe<CommonResponse>(opApi({ datasetId, documentId: id }) as Promise<CommonResponse>)
if (!e) {
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
onUpdate?.()
onUpdate?.(operationName)
}
else { notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') }) }
}

正在加载...
取消
保存