From 88a1f72b596b56268befcb63f03aa4822d2a5e33 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Tue, 24 Jan 2023 17:53:58 +0530 Subject: [PATCH] fix: collections order in publish modal should match with the order in sidebar (#4762) --- app/stores/CollectionsStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stores/CollectionsStore.ts b/app/stores/CollectionsStore.ts index ea4fbc26b..beeb08385 100644 --- a/app/stores/CollectionsStore.ts +++ b/app/stores/CollectionsStore.ts @@ -152,7 +152,7 @@ export default class CollectionsStore extends BaseStore { }; if (this.isLoaded) { - this.data.forEach((collection) => { + this.orderedData.forEach((collection) => { root.children.push( subtree({ data: {