mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: remove null users in filter (#7308)
This commit is contained in:
parent
7df1321128
commit
6b4d9d0c1d
@ -23,9 +23,11 @@ export class ProjectFlagCreatorsReadModel
|
||||
'users.username',
|
||||
'users.email',
|
||||
]);
|
||||
return result.map((row) => ({
|
||||
id: Number(row.id),
|
||||
name: String(row.name || row.username || row.email),
|
||||
}));
|
||||
return result
|
||||
.filter((row) => row.name || row.username || row.email)
|
||||
.map((row) => ({
|
||||
id: Number(row.id),
|
||||
name: String(row.name || row.username || row.email),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user