mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Merge pull request #650 from foxytocin/master
prevents crashes if NULL is entered as a referrer in the database
This commit is contained in:
commit
d6c48fa121
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export const refFilter = (data, { domain, domainOnly, raw }) => {
|
||||||
const links = {};
|
const links = {};
|
||||||
|
|
||||||
const isValidRef = ref => {
|
const isValidRef = ref => {
|
||||||
return ref !== '' && !ref.startsWith('/') && !ref.startsWith('#');
|
return ref !== '' && ref !== null && !ref.startsWith('/') && !ref.startsWith('#');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (raw) {
|
if (raw) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue