1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: hide users list extra searchable columns (#4142)

https://linear.app/unleash/issue/2-1187/fix-two-extra-columns-in-users-list

This fixes a regression introduced in
https://github.com/Unleash/unleash/pull/4131 where two extra columns
were added for search only but were not properly hidden.

Thanks @nicolaesocaciu for the heads up!

Before:

![image](https://github.com/Unleash/unleash/assets/14320932/09db9078-7804-448a-b889-bd0c58cb2013)

After:

![image](https://github.com/Unleash/unleash/assets/14320932/f099cf42-811c-4a9b-b34a-482fd2bae478)
This commit is contained in:
Nuno Góis 2023-07-05 08:39:59 +01:00 committed by GitHub
parent 451c67a24b
commit 8ff10aac29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,9 @@ const UsersList = () => {
const initialState = useMemo(() => { const initialState = useMemo(() => {
return { return {
sortBy: [{ id: 'createdAt' }], sortBy: [{ id: 'createdAt' }],
hiddenColumns: isBillingUsers ? [] : ['type'], hiddenColumns: isBillingUsers
? ['username', 'email']
: ['type', 'username', 'email'],
}; };
}, [isBillingUsers]); }, [isBillingUsers]);