fix: error
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions

This commit is contained in:
StyleZhang 2024-10-21 16:54:11 +08:00
parent c96dc1e70d
commit adc550e5dc

View File

@ -18,7 +18,9 @@ export const checkNodeValid = () => {
return true return true
} }
export const getSelectedDatasetsMode = (datasets: DataSet[]) => { export const getSelectedDatasetsMode = (datasets: DataSet[] = []) => {
if (datasets === null)
datasets = []
let allHighQuality = true let allHighQuality = true
let allHighQualityVectorSearch = true let allHighQualityVectorSearch = true
let allHighQualityFullTextSearch = true let allHighQualityFullTextSearch = true