mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 16:13:24 +01:00
fix space child reorder bug
This commit is contained in:
parent
cb5bb2fc73
commit
9952dce79d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -40,7 +40,7 @@ const hierarchyItemByOrder: SortFunc<HierarchyItem> = (a, b) => {
|
|||
if (aOrder > bOrder) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
};
|
||||
|
||||
const getFlattenSpaceHierarchy = (
|
||||
|
|
Loading…
Reference in a new issue