ソースを参照

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

読み込み中…
キャンセル
保存