mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02: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:  After: 
This commit is contained in:
parent
451c67a24b
commit
8ff10aac29
@ -197,7 +197,9 @@ const UsersList = () => {
|
||||
const initialState = useMemo(() => {
|
||||
return {
|
||||
sortBy: [{ id: 'createdAt' }],
|
||||
hiddenColumns: isBillingUsers ? [] : ['type'],
|
||||
hiddenColumns: isBillingUsers
|
||||
? ['username', 'email']
|
||||
: ['type', 'username', 'email'],
|
||||
};
|
||||
}, [isBillingUsers]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user