mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
Revert "Updated ImportJsonTask file mapDocuments method to use unshift instea…"
This reverts commit 9cab404194.
This commit is contained in:
1 parent
8fec6758b8
commit
bfc9ca8a3c
1 file changed
+1
-3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user