| const [e] = await asyncRunSafe<CommonResponse>(opApi({ datasetId, documentId: id }) as Promise<CommonResponse>) | const [e] = await asyncRunSafe<CommonResponse>(opApi({ datasetId, documentId: id }) as Promise<CommonResponse>) | ||||
| if (!e) { | if (!e) { | ||||
| notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') }) | notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') }) | ||||
| onUpdate?.() | |||||
| onUpdate?.(operationName) | |||||
| } | } | ||||
| else { notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') }) } | else { notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') }) } | ||||
| } | } |