mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: remove blank space from users filters (#21346)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user