mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fixed issue with removing team members.
This commit is contained in:
parent
096484ebe4
commit
1351e6f14a
10 changed files with 51 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ import useMessages from 'components/hooks/useMessages';
|
|||
export function WebsiteSelect({ websiteId, onSelect }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { get, useQuery } = useApi();
|
||||
const { data } = useQuery(['websites:me'], () => get('/me/websites'));
|
||||
const { data } = useQuery(['websites:me'], () => get('/me/websites', { pageSize: 100 }));
|
||||
|
||||
const renderValue = value => {
|
||||
return data?.data?.find(({ id }) => id === value)?.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue