mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
fix cloud mode for teams
This commit is contained in:
parent
e8d8a8a84a
commit
7c1cb7631d
@ -8,7 +8,7 @@ import TeamsAddButton from './TeamsAddButton';
|
||||
export function TeamsHeader({ allowCreate = true }: { allowCreate?: boolean }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { user } = useLogin();
|
||||
const cloudMode = process.env.CLOUD_MODE;
|
||||
const cloudMode = !!process.env.cloudMode;
|
||||
|
||||
return (
|
||||
<PageHeader title={formatMessage(labels.teams)}>
|
||||
|
@ -26,7 +26,7 @@ export function TeamEditForm({ teamId, allowEdit }: { teamId: string; allowEdit?
|
||||
const ref = useRef(null);
|
||||
const [accessCode, setAccessCode] = useState(team.accessCode);
|
||||
const { showToast } = useToasts();
|
||||
const cloudMode = process.env.CLOUD_MODE;
|
||||
const cloudMode = !!process.env.cloudMode;
|
||||
|
||||
const handleSubmit = async (data: any) => {
|
||||
mutate(data, {
|
||||
|
Loading…
Reference in New Issue
Block a user