mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-25 20:02:46 +01:00
Fix not found appearing on share pages.
This commit is contained in:
parent
b1493dfef8
commit
c5d7d5dea2
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -16,7 +16,7 @@ export default function SharePage() {
|
|||||||
|
|
||||||
if (website) {
|
if (website) {
|
||||||
setWebsiteId(website.website_id);
|
setWebsiteId(website.website_id);
|
||||||
} else {
|
} else if (typeof window !== 'undefined') {
|
||||||
setNotFound(true);
|
setNotFound(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user