Skip to content

Commit 9094cf1

Browse files
authored
Bugfix/Add fix for processing chunks (#3154)
add fix for processing chunks
1 parent f464704 commit 9094cf1

File tree

1 file changed

+6
-6
lines changed
  • packages/server/src/services/documentstore

1 file changed

+6
-6
lines changed

packages/server/src/services/documentstore/index.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ const processAndSaveChunks = async (data: IDocumentStoreLoaderForPreview) => {
589589
found.totalChars = 0
590590
found.status = DocumentStoreStatus.SYNCING
591591
entity.loaders = JSON.stringify(existingLoaders)
592-
data.loaderId = found.loaderId
593-
data.loaderName = found.loaderName
594-
data.loaderConfig = found.loaderConfig
595-
data.splitterId = found.splitterId
596-
data.splitterName = found.splitterName
597-
data.splitterConfig = found.splitterConfig
592+
if (!data.loaderId) data.loaderId = found.loaderId
593+
if (!data.loaderName) data.loaderName = found.loaderName
594+
if (!data.loaderConfig) data.loaderConfig = found.loaderConfig
595+
if (!data.splitterId) data.splitterId = found.splitterId
596+
if (!data.splitterName) data.splitterName = found.splitterName
597+
if (!data.splitterConfig) data.splitterConfig = found.splitterConfig
598598
if (found.credential) {
599599
data.credential = found.credential
600600
}

0 commit comments

Comments
 (0)