File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
resources/js/components/forms/album Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const usersAndGroupsStore = useUsersAndGroupStore();
4040
4141const props = defineProps <{
4242 filteredUsersIds? : UserOrGroupId [];
43- withGroups? : boolean ; // TODO: check me
43+ withGroups? : boolean ;
4444}>();
4545
4646const emits = defineEmits <{
@@ -70,7 +70,8 @@ function filterUserGroups(filteredUsersIds: UserOrGroupId[] = []) {
7070
7171 options .value = usersAndGroupsStore .usersGroupsList .filter (
7272 (userGroup ) =>
73- (userGroup .type === " user" && ! userIds .includes (userGroup .id )) || (userGroup .type === " group" && ! groupIds .includes (userGroup .id )),
73+ (userGroup .type === " user" && ! userIds .includes (userGroup .id )) ||
74+ (props .withGroups && userGroup .type === " group" && ! groupIds .includes (userGroup .id )),
7475 );
7576
7677 if (options .value .length === 0 && emits !== undefined ) {
You can’t perform that action at this time.
0 commit comments