Sync space order with web #5134

This commit is contained in:
Gil Eluard 2022-03-25 13:45:16 +01:00
parent 4bda8da4fe
commit dc3e7aec2f
2 changed files with 2 additions and 1 deletions

View file

@ -184,7 +184,7 @@ final class SpaceListViewModel: SpaceListViewModelType {
var index = 0 var index = 0
for itemViewData in viewDataList { for itemViewData in viewDataList {
if itemViewData.spaceId == self.selectedItemId { if itemViewData.spaceId == self.selectedItemId {
newSelection = IndexPath(row: index, section: sections.count - 1) newSelection = IndexPath(row: index, section: spacesSectionIndex)
} }
index += 1 index += 1
} }

1
changelog.d/5134.bugfix Normal file
View file

@ -0,0 +1 @@
Sync Spaces order with web