mirror of https://github.com/langgenius/dify.git
fix: pass operation name to onUpdate callback in StatusItem component (#26019)
This commit is contained in:
parent
345ac8333c
commit
8c38363038
|
|
@ -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…
Reference in New Issue