Skip to content

Commit 6b4d9d0

Browse files
authored
fix: remove null users in filter (#7308)
1 parent 7df1321 commit 6b4d9d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/features/project/project-flag-creators-read-model.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ export class ProjectFlagCreatorsReadModel
2323
'users.username',
2424
'users.email',
2525
]);
26-
return result.map((row) => ({
27-
id: Number(row.id),
28-
name: String(row.name || row.username || row.email),
29-
}));
26+
return result
27+
.filter((row) => row.name || row.username || row.email)
28+
.map((row) => ({
29+
id: Number(row.id),
30+
name: String(row.name || row.username || row.email),
31+
}));
3032
}
3133
}

0 commit comments

Comments
 (0)