fix space child reorder bug

This commit is contained in:
Ajay Bura 2024-05-12 08:06:31 +05:30
parent cb5bb2fc73
commit 9952dce79d
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@ export function Lobby() {
}
const childItems = flattenHierarchy
.filter((i) => i.parentId === containerParentId && !item.space)
.filter((i) => i.parentId === containerParentId && !i.space)
.filter((i) => i.roomId !== item.roomId);
const beforeItem: HierarchyItem | undefined = containerItem.space ? undefined : containerItem;

View file

@ -40,7 +40,7 @@ const hierarchyItemByOrder: SortFunc<HierarchyItem> = (a, b) => {
if (aOrder > bOrder) {
return 1;
}
return 0;
return -1;
};
const getFlattenSpaceHierarchy = (