refactor: update local file and online drive state management in create-from-pipeline components

This commit is contained in:
twwu
2025-08-28 13:47:20 +08:00
parent 843b14ccc6
commit 048feb4165
11 changed files with 65 additions and 60 deletions

View File

@ -110,8 +110,8 @@ const useBeforeRunForm = ({
}
}
if (datasourceType === DatasourceType.onlineDrive) {
const { bucket, fileList, selectedFileIds } = dataSourceStore.getState()
const file = fileList.find(file => file.id === selectedFileIds[0])
const { bucket, onlineDriveFileList, selectedFileIds } = dataSourceStore.getState()
const file = onlineDriveFileList.find(file => file.id === selectedFileIds[0])
datasourceInfo = {
bucket,
id: file?.id,