mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
chore: remove blank space from users filters (#21346)
This commit is contained in:
parent
64d216adb3
commit
973d870538
@ -92,8 +92,9 @@ const createFetchResourceMethod =
|
||||
: undefined;
|
||||
|
||||
const data: { label: string; value: string | number }[] = [];
|
||||
json?.result?.forEach(
|
||||
({ text, value }: { text: string; value: string | number }) => {
|
||||
json?.result
|
||||
?.filter(({ text }: { text: string }) => text.trim().length > 0)
|
||||
.forEach(({ text, value }: { text: string; value: string | number }) => {
|
||||
if (
|
||||
loggedUser &&
|
||||
value === loggedUser.value &&
|
||||
@ -106,8 +107,7 @@ const createFetchResourceMethod =
|
||||
value,
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
if (loggedUser && (!filterValue || fetchedLoggedUser)) {
|
||||
data.unshift(loggedUser);
|
||||
|
Loading…
Reference in New Issue
Block a user