|
@@ -222,9 +222,9 @@ const childrenToAdd = computed(() => {
|
|
|
const sortedMembers = computed(() => {
|
|
|
if (!currentPartEntityData.value) return [];
|
|
|
return [...currentPartEntityData.value.members].sort((a, b) => {
|
|
|
- const aIsOwner = a.userId === userData.value?.userId;
|
|
|
+ const aIsUser = a.userId === userData.value?.userId;
|
|
|
const bIsChild = children.value?.some((c) => c.userId === b.userId);
|
|
|
- if (aIsOwner) return -1;
|
|
|
+ if (aIsUser) return 1;
|
|
|
if (bIsChild) return 1;
|
|
|
return 0;
|
|
|
});
|