Revert "Updated ImportJsonTask file mapDocuments method to use unshift instea…"

This reverts commit 9cab404194.
This commit is contained in:
Tom Moor authored and GitHub committed 2025-01-15 06:58:10 -08:00
1 parent 8fec6758b8
commit bfc9ca8a3c
1 file changed
+1 -3
+1 -3
View File
@@ -73,9 +73,7 @@ export default class ImportJSONTask extends ImportTask {
) {
Object.values(documents).forEach((node) => {
const id = uuidv4();
// Using unshift instead of push to maintain the correct order of documents
// because addDocumentToStructure uses index 0 for insertion, reversing the order
output.documents.unshift({
output.documents.push({
...node,
path: "",
// populate text to maintain consistency with existing data.