mirror of
https://github.com/strapi/strapi.git
synced 2025-11-18 02:58:05 +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) {
|
if (canReadUsers && users) {
|
||||||
const getDisplaynameFromUser = (user) => {
|
const getDisplayNameFromUser = (user) => {
|
||||||
if (user.username) {
|
if (user.username) {
|
||||||
return user.username;
|
return user.username;
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ const getDisplayedFilters = ({ formatMessage, users, canReadUsers }) => {
|
|||||||
|
|
||||||
const userOptions = users.results.map((user) => {
|
const userOptions = users.results.map((user) => {
|
||||||
return {
|
return {
|
||||||
label: getDisplaynameFromUser(user),
|
label: getDisplayNameFromUser(user),
|
||||||
// Combobox expects a string value
|
// Combobox expects a string value
|
||||||
customValue: user.id.toString(),
|
customValue: user.id.toString(),
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user