diff --git a/web/app/components/base/toast/index.tsx b/web/app/components/base/toast/index.tsx
index 725c7af8c2..40352f44c0 100644
--- a/web/app/components/base/toast/index.tsx
+++ b/web/app/components/base/toast/index.tsx
@@ -11,7 +11,7 @@ import {
} from '@remixicon/react'
import { createContext, useContext } from 'use-context-selector'
import ActionButton from '@/app/components/base/action-button'
-import classNames from '@/utils/classnames'
+import cn from '@/utils/classnames'
import { noop } from 'lodash-es'
export type IToastProps = {
@@ -44,29 +44,28 @@ const Toast = ({
if (typeof message !== 'string')
return null
- return
-
-
-
- {type === 'success' &&
}
- {type === 'error' &&
}
- {type === 'warning' &&
}
- {type === 'info' &&
}
+
+
+ {type === 'success' && }
+ {type === 'error' && }
+ {type === 'warning' && }
+ {type === 'info' && }
-
+
{message}
{customComponent}
diff --git a/web/service/use-pipeline.ts b/web/service/use-pipeline.ts
index 4bd867f9cd..7badda6e63 100644
--- a/web/service/use-pipeline.ts
+++ b/web/service/use-pipeline.ts
@@ -357,7 +357,7 @@ export const useConvertDatasetToPipeline = () => {
return useMutation({
mutationKey: [NAME_SPACE, 'convert-dataset-to-pipeline'],
mutationFn: (datasetId: string) => {
- return post
(`/rag/pipelines/transform/${datasetId}`)
+ return post(`/rag/pipelines/transform/datasets/${datasetId}`)
},
})
}