Преглед изворни кода

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

tags/1.9.0
Wu Tianwei пре 1 месец
родитељ
комит
8c38363038
No account linked to committer's email address
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…
Откажи
Сачувај