mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Format function name
This commit is contained in:
parent
3c3139134a
commit
8d2b639938
@ -53,7 +53,7 @@ const getDisplayedFilters = ({ formatMessage, users, canReadUsers }) => {
|
||||
];
|
||||
|
||||
if (canReadUsers && users) {
|
||||
const getDisplaynameFromUser = (user) => {
|
||||
const getDisplayNameFromUser = (user) => {
|
||||
if (user.username) {
|
||||
return user.username;
|
||||
}
|
||||
@ -76,7 +76,7 @@ const getDisplayedFilters = ({ formatMessage, users, canReadUsers }) => {
|
||||
|
||||
const userOptions = users.results.map((user) => {
|
||||
return {
|
||||
label: getDisplaynameFromUser(user),
|
||||
label: getDisplayNameFromUser(user),
|
||||
// Combobox expects a string value
|
||||
customValue: user.id.toString(),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user