mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Updated validations for websites.
This commit is contained in:
parent
5c933d1c4a
commit
1325abe31d
3 changed files with 7 additions and 13 deletions
|
|
@ -1,15 +1,9 @@
|
|||
import WebsiteSettings from '../WebsiteSettings';
|
||||
|
||||
async function getDisabled() {
|
||||
return !!process.env.CLOUD_MODE;
|
||||
}
|
||||
|
||||
export default async function WebsiteSettingsPage({ params }) {
|
||||
const disabled = await getDisabled();
|
||||
|
||||
if (!params.id || disabled) {
|
||||
export default async function WebsiteSettingsPage({ params: { id } }) {
|
||||
if (process.env.cloudMode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <WebsiteSettings websiteId={params.id} />;
|
||||
return <WebsiteSettings websiteId={id} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue