diff --git a/web/app/components/rag-pipeline/conversion.tsx b/web/app/components/rag-pipeline/conversion.tsx index f28420a0ed..cf9f4807d5 100644 --- a/web/app/components/rag-pipeline/conversion.tsx +++ b/web/app/components/rag-pipeline/conversion.tsx @@ -15,13 +15,13 @@ const Conversion = () => { const [showConfirmModal, setShowConfirmModal] = useState(false) const { mutateAsync: convert, isPending } = useConvertDatasetToPipeline() - const invalidDatasetDetail = useInvalid([datasetDetailQueryKeyPrefix, datasetId]) + const invalidDatasetDetail = useInvalid([...datasetDetailQueryKeyPrefix, datasetId]) const handleConvert = useCallback(() => { convert(datasetId as string, { onSuccess: (res) => { if (res.status === 'success') { Toast.notify({ - type: 'error', + type: 'success', message: t('datasetPipeline.conversion.successMessage'), }) setShowConfirmModal(false)