Bladeren bron

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

tags/1.9.0
Wu Tianwei 1 maand geleden
bovenliggende
commit
8c38363038
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      web/app/components/datasets/documents/status-item/index.tsx

+ 1
- 1
web/app/components/datasets/documents/status-item/index.tsx Bestand weergeven

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

Laden…
Annuleren
Opslaan