mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Fix default date range setting.
This commit is contained in:
parent
69b81880cb
commit
7a3c1e9faa
4 changed files with 12 additions and 13 deletions
|
|
@ -56,7 +56,7 @@ export const doNotTrack = () => {
|
|||
};
|
||||
|
||||
export const setItem = (key, data, session) => {
|
||||
if (typeof window !== 'undefined') {
|
||||
if (typeof window !== 'undefined' && data) {
|
||||
(session ? sessionStorage : localStorage).setItem(key, JSON.stringify(data));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue