瀏覽代碼

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') }) }
}

Loading…
取消
儲存